Skip to content
This repository was archived by the owner on Nov 23, 2021. It is now read-only.

Replace uglifyJs with terser #92

Merged
merged 2 commits into from
Mar 21, 2019
Merged

Conversation

piotr-gawlowski
Copy link
Contributor

@piotr-gawlowski piotr-gawlowski commented Mar 21, 2019

Current version of react cannot be minified with UglifyJs. It's know issue for React team.
Terser is suggested by React team as a minifier for ES6 code.

Some sources:
rails/webpacker#1719
https://twitter.com/dan_abramov/status/1060245441084825600

@@ -1,4 +1,4 @@
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const TerserPlugin = require('uglifyjs-webpack-plugin');

Choose a reason for hiding this comment

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

Shouldn't this be require('terser-webpack-plugin')?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

omg

@piotr-gawlowski piotr-gawlowski force-pushed the piotr/migrate-to-terser branch from ad525e6 to 8a76599 Compare March 21, 2019 11:58
@coveralls
Copy link

coveralls commented Mar 21, 2019

Pull Request Test Coverage Report for Build 222

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 75.191%

Totals Coverage Status
Change from base Build 215: 0.0%
Covered Lines: 126
Relevant Lines: 172

💛 - Coveralls

indebanvdhamer
indebanvdhamer previously approved these changes Mar 21, 2019
@piotr-gawlowski piotr-gawlowski merged commit 987c472 into master Mar 21, 2019
@piotr-gawlowski piotr-gawlowski deleted the piotr/migrate-to-terser branch March 21, 2019 12:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants