Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minify JS #659

Open
kmeht opened this issue Feb 6, 2018 · 1 comment
Open

Minify JS #659

kmeht opened this issue Feb 6, 2018 · 1 comment

Comments

@kmeht
Copy link
Member

kmeht commented Feb 6, 2018

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
Copy link
Contributor

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, }) ); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants