modified: nfig1.py
[GalaxyCodeBases.git] / js / TagSelect.js / webpack.config.js
blob7ecc3adada774c98c3652468b9a635a46e67e142
1 var webpack = require('webpack'),
2 LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
4 process.env.BUILD = (process.argv.indexOf('--lite') !== -1) ? 'lite' : 'full';
6 var plugins = [
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());
16 module.exports = {
17 'entry': './browser.js',
18 'module': {
19 'postLoaders': [{
20 loader: 'transform?envify'
23 'plugins': plugins