can't Extract css (webpack 4)
shiyiya opened this issue · 4 comments
shiyiya commented
webpack can't use extract-text-webpack-plugin
entry: ["jquery", "bootstrap-loader", "./js/index.js"],
new MiniCssExtractPlugin({
filename: "bundle.css"
}),
{
test: /\.css$/,
use: [
MiniCssExtractPlugin.loader,
{
loader: "css-loader",
options: {
minimize: true
}
},
{
loader: "style-loader"
}
]
}
// .bootstraprc
bootstrapVersion: 3
styleLoaders:
- style
- css
- sass-loader
extractStylesOptions:
plugin: mini-css-extract-plugin
# extractStyles: true
env:
development:
extractStyles: false
production:
extractStyles: true
justin808 commented
Webpack 4 uses https://github.com/webpack-contrib/mini-css-extract-plugin
shiyiya commented
i was used it (mini-css-extract-plugin), but can't extract css.
shiyiya commented