From c78456e98f024c351d66ef301d461b3854d18400 Mon Sep 17 00:00:00 2001 From: kevin-wad Date: Fri, 20 Dec 2019 14:40:27 +0100 Subject: [PATCH] Try update webpack to fix issue --- webpack.config.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index b945760d..adb36efa 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -105,7 +105,15 @@ module.exports = { }, plugins: [ new CopyPlugin([ - { from: 'app/assets', to: 'assets' } - ]) + { from: 'app/assets/css', to: 'assets' } + ]), + new webpack.DefinePlugin({ + 'process.env': { + NODE_ENV: '"production"' + } + }), + new ExtractTextPlugin({ + filename: 'app/assets/main.css' + }) ] };