You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
538 B
26 lines
538 B
4 years ago
|
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({
|
||
|
assetNameRegExp: /optimize-me\.css/g
|
||
|
})
|
||
|
],
|
||
|
};
|