bmun / huxley

Conference management system for Berkeley Model United Nations.
http://www.bmun.org
BSD 3-Clause "New" or "Revised" License
37 stars 42 forks source link

Minify JS #659

Open kmeht opened 6 years ago

kmeht commented 6 years ago

I just loaded the app and it doesn't appear that we're minifying our JS code. Perhaps we forgot a config option in our build step? I know for certain that we used to do this back when we were using django-pipeline.

m-j-mcdonald commented 6 years ago

The config is set up to only minify in prod right now. This is the relevant part:

if (process.env.NODE_ENV === 'production') { plugins.push( new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false, }, mangle: true, }) ); }