WIP - add extractor, generate snippet_data
This commit is contained in:
20
node_modules/optimize-css-assets-webpack-plugin/test/cases/removes-duplicate-css/webpack.config.js
generated
vendored
Normal file
20
node_modules/optimize-css-assets-webpack-plugin/test/cases/removes-duplicate-css/webpack.config.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
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()]
|
||||
};
|
||||
Reference in New Issue
Block a user