mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 18:17:38 +00:00
19 lines
414 B
JavaScript
19 lines
414 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({
|
|
sourceMap: true
|
|
})
|
|
]);
|
|
|
|
config.entry = (config.entry || []).concat([
|
|
'./js/googleAnalytics.min.js'
|
|
]);
|
|
|
|
module.exports = config;
|