{
test: /\.(sass|scss)$/,
use: [{
loader: MiniCssExtractPlugin.loader,
options: {
publicPath: "../"
}
},
"css-loader",
"postcss-loader",
"sass-loader"
]
},
// postcss.config.js
module.exports = {
plugins: [
require("autoprefixer"),
// reuqire("postcss-import")
]
new MiniCssExtractPlugin({
filename: "css/[name].[hash:6].css",
// chunkFilename: "css/[name].[hash:6].css",
}),
}