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

Terser #4191

Merged
merged 5 commits into from
Jan 22, 2020
Merged

Terser #4191

merged 5 commits into from
Jan 22, 2020

Conversation

Stanzilla
Copy link
Contributor

No description provided.

@Stanzilla
Copy link
Contributor Author

@LabhanshAgrawal hey, what do you think about this? File size is a bit bigger because I only went with the default options for terser but otherwise looks cool?

webpack.config.js Outdated Show resolved Hide resolved
@LabhanshAgrawal
Copy link
Collaborator

Looks good, Is this for #4115 ?
What's the advantage of using terser(after required config) over babel minify?

@Stanzilla
Copy link
Contributor Author

Yes, part of it. Mostly minify is pretty dead at the moment babel/minify#952

@LabhanshAgrawal
Copy link
Collaborator

Can you add a condition for checking the isProd variable, would be easier to debug during development

@LabhanshAgrawal
Copy link
Collaborator

Need to change the webpack config a little to use the type information. I can't add changes to the pr, so I've pushed it here, you can cherrypick the latest commit, if the change seems ok to you.
Other than the above, the rest looks cool, we can configure terser after this.

@Stanzilla Stanzilla merged commit 2c7e240 into vercel:canary Jan 22, 2020
@Stanzilla Stanzilla deleted the terser branch February 21, 2020 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants