Skip to content

Only uglify if building for production. #792

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

Merged

Conversation

paulkaplan
Copy link
Contributor

Uglify was trying to run always, including the dev-server output, which
included es6 that broke uglifier.

Resolves

What Github issue does this resolve (please include link)?

Fixes #774

Proposed Changes

Describe what this Pull Request does

Only uglify things when run in production environment.

Reason for Changes

Explain why these changes should be made

It was not possible to use the playground from a fresh install.

Test Coverage

Please show how you have added tests to cover your changes

Ran the npm run start from clean install, no errors.


The same problem exists on render, i'll update that repo with the same fix.

Uglify was trying to run always, including the dev-server output, which
included es6 that broke uglifier.
Copy link
Contributor

@rschamp rschamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @paulkaplan!

@paulkaplan paulkaplan merged commit 8ce20fd into scratchfoundation:develop Nov 17, 2017
@paulkaplan paulkaplan deleted the fix-webpack-dev-server branch November 17, 2017 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In range update for webpack-dev-server does not work
3 participants