var extend = require('extend'), webpack = require('webpack'), webpackConfig = require('./webpack.config'); var config = { plugins: [ new webpack.optimize.UglifyJsPlugin({minimize: true}) ], output: { filename: 'dat.gui.min.js' } } module.exports = extend(true, webpackConfig, config);