katoikia-app/web-ui/web-react/node_modules/optimize-css-assets-webpack.../test/cases/duplicate-css-exists-withou.../webpack.config.js

21 lines
442 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +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")]
};