Skip to content

Commit c79db4e

Browse files
In React-Redux template, move Webpack config for images into sharedConfig so that adding images doesn't break the server build
1 parent 9528dd7 commit c79db4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎templates/ReactReduxSpa/webpack.config.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ module.exports = (env) =>{
1717
},
1818
module: {
1919
rules: [
20-
{test: /\.tsx?$/,include: /ClientApp/,use: 'awesome-typescript-loader?silent=true'}
20+
{test: /\.tsx?$/,include: /ClientApp/,use: 'awesome-typescript-loader?silent=true'},
21+
{test: /\.(png|jpg|jpeg|gif|svg)$/,use: 'url-loader?limit=25000'}
2122
]
2223
},
2324
plugins: [newCheckerPlugin()]
@@ -29,8 +30,7 @@ module.exports = (env) =>{
2930
entry: {'main-client': './ClientApp/boot-client.tsx'},
3031
module: {
3132
rules: [
32-
{test: /\.css$/,use: ExtractTextPlugin.extract({use: isDevBuild ? 'css-loader' : 'css-loader?minimize'})},
33-
{test: /\.(png|jpg|jpeg|gif|svg)$/,use: 'url-loader?limit=25000'}
33+
{test: /\.css$/,use: ExtractTextPlugin.extract({use: isDevBuild ? 'css-loader' : 'css-loader?minimize'})}
3434
]
3535
},
3636
output: {path: path.join(__dirname,clientBundleOutputDir)},

0 commit comments

Comments
(0)