From 83843f4081edc90d534100157f3c9b9c7802544c Mon Sep 17 00:00:00 2001 From: Mael Date: Thu, 8 Nov 2018 13:22:02 +0000 Subject: [PATCH] =?UTF-8?q?:bug:=20Probl=C3=A8me=20de=20compilation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/webpack.prod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/webpack.prod.js b/source/webpack.prod.js index b1ceb8c55..5e9116434 100644 --- a/source/webpack.prod.js +++ b/source/webpack.prod.js @@ -39,7 +39,7 @@ const prerenderConfig = () => ({ // Replace style-loader with MiniCssExtractPlugin.loader common.module.rules .find(rule => rule.test.test('a.css')) - .use.find(loader => loader.loader === 'style-loader').loader = + .use.find(loader => (loader || loader.loader) === 'style-loader').loader = MiniCssExtractPlugin.loader module.exports = { ...common,