From b19ee30d57589995d20dc2a27f6826a5a8ac4ef6 Mon Sep 17 00:00:00 2001 From: sky Date: Thu, 15 Nov 2018 11:56:08 +0800 Subject: [PATCH] fix: add webpack plugin filter: webpack-filter-warnings-plugin https://github.com/webpack-contrib/mini-css-extract-plugin/issues/250 --- config/plugin.js | 7 +++++++ package.json | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config/plugin.js b/config/plugin.js index 5dba16b..cd9263e 100644 --- a/config/plugin.js +++ b/config/plugin.js @@ -269,4 +269,11 @@ exports.copy = { enable: false, type: 'client', name: 'copy-webpack-plugin' +}; + +exports.filter = { + name: 'webpack-filter-warnings-plugin', + args: { + exclude: /\[mini-css-extract-plugin]\nConflicting order between:/ + } }; \ No newline at end of file diff --git a/package.json b/package.json index 6079d15..b164d11 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "easywebpack", - "version": "4.10.0-rc.3", + "version": "4.10.0-rc.4", "description": "基于 Webpack 的前端构建工程化解决方案", "keywords": [ "webpack", @@ -58,6 +58,7 @@ "webpack-asset-file-plugin": "^1.0.0", "webpack-hot-middleware": "^2.13.2", "webpack-manifest-resource-plugin": "^4.0.0", + "webpack-filter-warnings-plugin": "^1.2.0", "webpack-node-externals": "^1.6.0", "webpack-tool": "next" },