WARNING in chunk vendors [mini-css-extract-plugin]
Conflicting order between:
* css ./node_modules/css-loader!./node_modules/postcss-loader/src!./node_modules/antd/lib/select/style/index.css
* css ./node_modules/css-loader!./node_modules/postcss-loader/src!./node_modules/antd/lib/tooltip/style/index.css
* css ./node_modules/css-loader!./node_modules/postcss-loader/src!./node_modules/antd/lib/modal/style/index.css
* css ./node_modules/css-loader!./node_modules/postcss-loader/src!./node_modules/antd/lib/icon/style/index.css
* css ./node_modules/css-loader!./node_modules/postcss-loader/src!./node_modules/antd/lib/grid/style/index.css
* css ./node_modules/css-loader!./node_modules/postcss-loader/src!./node_modules/antd/lib/input/style/index.css
* css ./node_modules/css-loader!./node_modules/postcss-loader/src!./node_modules/antd/lib/message/style/index.css
* css ./node_modules/css-loader!./node_modules/postcss-loader/src!./node_modules/antd/lib/auto-complete/style/index.css
webpack4
,
const styleLoader = devMode ? "style-loader" : MiniCssExtractPlugin.loader;
{
test: /\.css$/,
use: [styleLoader, "css-loader", "postcss-loader"]
},
{
test: /\.less$/,
use: [{
loader: styleLoader
}, {
loader: "css-loader"
}, {
loader: "postcss-loader"
}, {
loader: "less-loader"
}]
},
{
test: /\.scss$/,
use: [{
loader: styleLoader
}, {
loader: "css-loader"
}, {
loader: "postcss-loader"
}, {
loader: "sass-loader"
}]
},
babel
"plugins": [
["import",
{
"libraryName": "antd",
"style": "css"
},
"loadsh"
],
"@babel/plugin-transform-modules-commonjs",
"@babel/plugin-proposal-class-properties"
]