mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
25 lines
581 B
TypeScript
25 lines
581 B
TypeScript
import webpack = require('webpack');
|
|
import OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
|
|
|
|
let configuration: webpack.Configuration;
|
|
|
|
configuration = {
|
|
plugins: [new OptimizeCssAssetsPlugin()],
|
|
};
|
|
|
|
configuration = {
|
|
plugins: [
|
|
new OptimizeCssAssetsPlugin({
|
|
assetNameRegExp: /\.min\.css$/,
|
|
cssProcessor: require('cssnano'),
|
|
cssProcessorOptions: {
|
|
map: false,
|
|
},
|
|
cssProcessorPluginOptions: {
|
|
preset: ['default', { discardComments: { removeAll: true } }],
|
|
},
|
|
canPrint: true,
|
|
}),
|
|
],
|
|
};
|