mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
26 lines
538 B
JavaScript
26 lines
538 B
JavaScript
|
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
|
||
|
})
|
||
|
],
|
||
|
};
|