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 Uglify not minifying js-ipfs libraries #28

Closed
wants to merge 7 commits into from
Closed

Conversation

fazo96
Copy link
Collaborator

@fazo96 fazo96 commented Jan 15, 2018

WIP

I think the best way to approach this is ejecting and using an updated version of uglify that can handle es6 code. This is because js-ipfs libs don't transpile code and webpack ends up importing es6 code that uglify can't handle.

Another way is manually making a list of packages that have to go through babel before reaching webpack but this means we still have to eject and also if js-ipfs deps change it could break our build.

As of right now, I ejected and changed webpack configuration to use an update uglifyjs. I also disabled compression and mangling because one of them or both were causing issues in the build. I need to further investigate what is the problem so that we can get the most optimized result without issues

@fazo96 fazo96 requested a review from kulpreet January 15, 2018 13:32
@fazo96 fazo96 self-assigned this Jan 15, 2018
@fazo96 fazo96 mentioned this pull request Jan 18, 2018
@fazo96
Copy link
Collaborator Author

fazo96 commented Jan 18, 2018

Closing this due to opting for a workaround without ejecting react-scripts: #41

@fazo96 fazo96 closed this Jan 18, 2018
@fazo96 fazo96 deleted the fix-ipfs-build branch February 7, 2018 09:37
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.

1 participant