From 03c98ab31fa3f6d05e4c6fc0a5266aaccc57e483 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 14 Jan 2018 12:09:59 -0800 Subject: [PATCH] do temporary workaround for sveltejs/sapper#79 --- webpack.client.config.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/webpack.client.config.js b/webpack.client.config.js index 904aa062..ebbfc283 100644 --- a/webpack.client.config.js +++ b/webpack.client.config.js @@ -35,10 +35,15 @@ module.exports = { }, !isDev && { test: /\.css$/, - use: ExtractTextPlugin.extract({ + /* disable while https://github.com/sveltejs/sapper/issues/79 is open */ + /*use: ExtractTextPlugin.extract({ fallback: 'style-loader', use: [{ loader: 'css-loader', options: { sourceMap:isDev } }] - }) + }) */ + use: [ + { loader: 'style-loader' }, + { loader: 'css-loader' } + ] } ].filter(Boolean) }, @@ -51,7 +56,8 @@ module.exports = { ].concat(isDev ? [ new webpack.HotModuleReplacementPlugin() ] : [ - new ExtractTextPlugin('main.css'), + /* disable while https://github.com/sveltejs/sapper/issues/79 is open */ + //new ExtractTextPlugin('main.css'), new webpack.optimize.ModuleConcatenationPlugin(), new UglifyJSPlugin() ]).filter(Boolean),