1234567891011121314151617181920 |
- 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")]
- };
|