var webpack = require('webpack'); var config = require('./webpack.build.js'); config.entry = { 'index': './src/index.js' }; config.plugins = config.plugins.concat([ new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false }, output: { comments: false }, sourceMap: false }) ]); module.exports = config;