webamp/webpack.production.config.js
Jordan Eldredge 7dd1bb8858 Enable react linting rules, fix linting errors
Also fix lint command in `package.json`
2016-11-28 20:24:12 -08:00

17 lines
389 B
JavaScript

const config = require('./webpack.config');
const webpack = require('webpack');
config.plugins = (config.plugins || []).concat([
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production')
}
}),
new webpack.optimize.UglifyJsPlugin()
]);
config.entry = (config.entry || []).concat([
'./js/googleAnalytics.min.js'
]);
module.exports = config;