mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 23:26:48 +08:00
18 lines
395 B
JavaScript
18 lines
395 B
JavaScript
const webpack = require('webpack');
|
|
const devConfig = require('./webpack.config.dev');
|
|
|
|
// Disable source maps.
|
|
devConfig.devtool = null;
|
|
|
|
devConfig.plugins = devConfig.plugins.concat([
|
|
new webpack.optimize.UglifyJsPlugin({
|
|
compress: {
|
|
warnings: false
|
|
}
|
|
}),
|
|
new webpack.optimize.OccurrenceOrderPlugin(),
|
|
new webpack.optimize.DedupePlugin()
|
|
]);
|
|
|
|
module.exports = devConfig;
|