1 var webpack
= require('webpack'),
2 LodashModuleReplacementPlugin
= require('lodash-webpack-plugin');
4 process
.env
.BUILD
= (process
.argv
.indexOf('--lite') !== -1) ? 'lite' : 'full';
7 new webpack
.EnvironmentPlugin(['BUILD']),
8 new LodashModuleReplacementPlugin(),
9 new webpack
.optimize
.OccurenceOrderPlugin()
12 if (process
.argv
.indexOf('--minify') !== -1) {
13 plugins
.push(new webpack
.optimize
.UglifyJsPlugin());
17 'entry': './browser.js',
20 loader
: 'transform?envify'