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.

13 lines
418 B

const webpack = require('webpack')
const webpackConfig = Object.create(require('./webpack.config.js'))
webpackConfig.output = Object.create(webpackConfig.output)
webpackConfig.output.filename = webpackConfig.output.filename.replace(/\.js$/, '.min.js')
webpackConfig.plugins = webpackConfig.plugins.concat(
new webpack.optimize.UglifyJsPlugin({ minimize: true, sourceMap: true })
)
module.exports = webpackConfig