GoScrobble/web/node_modules/optimize-css-assets-webpack-plugin/test/cases/removes-duplicate-css/webpack.config.js

21 lines
473 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
import ExtractTextPlugin from "extract-text-webpack-plugin";
import OptimizeCssAssetsPlugin from "../../../src/";
module.exports = {
entry: "./index",
module: {
rules: [
{
test: /\.css$/,
use: ExtractTextPlugin.extract({
fallback: { loader: "style-loader" },
use: {
loader: "css-loader"
}
})
}
]
},
plugins: [new ExtractTextPlugin("file.css"), new OptimizeCssAssetsPlugin()]
};