mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-24 07:28:28 +08:00
26 lines
544 B
JavaScript
26 lines
544 B
JavaScript
var webpack = require('webpack');
|
|
var config = require('./webpack.config');
|
|
|
|
delete config.devtool;
|
|
config.entry.demo = [config.entry.demo[0]];
|
|
|
|
config.plugins = [config.plugins[0], new webpack.optimize.UglifyJsPlugin({
|
|
sourceMap: false,
|
|
output: {
|
|
ascii_only: true
|
|
},
|
|
compress: {
|
|
warnings: false
|
|
}
|
|
})];
|
|
|
|
config.module.loaders.forEach(function(loader) {
|
|
if (loader.loader === 'babel') {
|
|
// remove preset hmre
|
|
loader.query.presets = loader.query.presets.slice(0, 3);
|
|
}
|
|
return loader;
|
|
});
|
|
|
|
module.exports = config;
|