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

Fix minify fail #1674

Merged
merged 1 commit into from
Sep 19, 2018
Merged

Fix minify fail #1674

merged 1 commit into from
Sep 19, 2018

Conversation

balloob
Copy link
Member

@balloob balloob commented Sep 19, 2018

Minification tried to inline a function, causing a const assignment.

First tried to update the minification plugin. However, we use uglify-es which is no longer maintained. It's being dropped by the new release of uglify-webpack-plugin. However uglify-js only supports ES5. uglify-es was forked as Terser, but that had the same error.

I tried Babel Minify too, but it made Webpack choke on source maps. The issue has been open for a long time so I decide to just simplify the code and voila, minifaction works again.

Also threw in a nicer red for the error card.

image

Fixes #1671

@ghost ghost assigned balloob Sep 19, 2018
@ghost ghost added the in progress label Sep 19, 2018
@balloob balloob changed the title Fix miniy fail Fix minify fail Sep 19, 2018
@balloob balloob merged commit 15d21cc into master Sep 19, 2018
@balloob balloob deleted the fix-minify-const branch September 19, 2018 09:32
@ghost ghost removed the in progress label Sep 19, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants