From c79db4e8e245604e0aaa97388055130bbfa8942e Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Thu, 13 Jul 2017 16:16:45 +0100 Subject: [PATCH] In React-Redux template, move Webpack config for images into sharedConfig so that adding images doesn't break the server build --- templates/ReactReduxSpa/webpack.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/ReactReduxSpa/webpack.config.js b/templates/ReactReduxSpa/webpack.config.js index deebbeb..59a5739 100644 --- a/templates/ReactReduxSpa/webpack.config.js +++ b/templates/ReactReduxSpa/webpack.config.js @@ -17,7 +17,8 @@ module.exports = (env) => { }, module: { rules: [ - { test: /\.tsx?$/, include: /ClientApp/, use: 'awesome-typescript-loader?silent=true' } + { test: /\.tsx?$/, include: /ClientApp/, use: 'awesome-typescript-loader?silent=true' }, + { test: /\.(png|jpg|jpeg|gif|svg)$/, use: 'url-loader?limit=25000' } ] }, plugins: [new CheckerPlugin()] @@ -29,8 +30,7 @@ module.exports = (env) => { entry: { 'main-client': './ClientApp/boot-client.tsx' }, module: { rules: [ - { test: /\.css$/, use: ExtractTextPlugin.extract({ use: isDevBuild ? 'css-loader' : 'css-loader?minimize' }) }, - { test: /\.(png|jpg|jpeg|gif|svg)$/, use: 'url-loader?limit=25000' } + { test: /\.css$/, use: ExtractTextPlugin.extract({ use: isDevBuild ? 'css-loader' : 'css-loader?minimize' }) } ] }, output: { path: path.join(__dirname, clientBundleOutputDir) },