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

Include minification note #278

Closed
gaboesquivel opened this issue Oct 1, 2015 · 4 comments

Comments

@gaboesquivel
Copy link
Member

commented Oct 1, 2015

It believe it is important to include a note ( perhaps under FAQ ) on relation to minification. Mention that UglifyJS2 will safely minify the javascript since it does ASI by default.

@rstacruz

This comment has been minimized.

Copy link
Member

commented Oct 2, 2015

are there known minifiers that don't work? I'm under the assumption here that most production-grade minifiers today should be able to handle semicolon-less JS.

@gaboesquivel

This comment has been minimized.

Copy link
Member Author

commented Oct 2, 2015

@rstacruz I've always used semicolons and I never give it a thought to ASI support in minifiers since I'm used to lint before minification. When I decided to try to this style it was one of my first concerns, I had to read the minifier docs to realize it's all good. Perhaps this knowledge shouldn't be assumed... someone could that have the same concern and finding a note in standard would be useful. As you phrase would suffice "most production-grade minifiers today should be able to handle semicolon-less JS."

@dcousens dcousens added the question label Oct 2, 2015

@dcousens

This comment has been minimized.

Copy link
Member

commented Oct 2, 2015

@gaboesquivel PR welcome! It is probably worth mentioning.

@feross

This comment has been minimized.

Copy link
Member

commented Nov 21, 2015

PR sent: #341

@feross feross closed this in f630bc1 Nov 21, 2015

jprichardson added a commit that referenced this issue Nov 21, 2015

Merge pull request #341 from feross/minification
Include minification note (Fix #278)

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
4 participants
You can’t perform that action at this time.