From e6a2bf2975f2a07beac2fba978dc8b488226e332 Mon Sep 17 00:00:00 2001 From: Howard Yin <37261065+yindaheng98@users.noreply.github.com> Date: Sun, 26 Sep 2021 03:42:36 +0800 Subject: [PATCH] fix(deps) mini-css-extract-plugin loader (#633) --- webpack.config.js | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index ba77386..791302b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -70,7 +70,12 @@ module.exports = { test: /\.css$/, use: [ 'vue-style-loader', - MiniCssExtractPlugin.loader, + { + loader: MiniCssExtractPlugin.loader, + options: { + esModule: false, + }, + }, { loader: 'css-loader', options: { @@ -91,7 +96,12 @@ module.exports = { test: /\.less$/, use: [ 'vue-style-loader', - MiniCssExtractPlugin.loader, + { + loader: MiniCssExtractPlugin.loader, + options: { + esModule: false, + }, + }, { loader: 'css-loader', options: { @@ -113,7 +123,12 @@ module.exports = { test: /\.scss$/, use: [ 'vue-style-loader', - MiniCssExtractPlugin.loader, + { + loader: MiniCssExtractPlugin.loader, + options: { + esModule: false, + }, + }, { loader: 'css-loader', options: {