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

Custom builds have extra semicolons #273

Closed
jaydenseric opened this issue Jun 8, 2014 · 1 comment
Closed

Custom builds have extra semicolons #273

jaydenseric opened this issue Jun 8, 2014 · 1 comment

Comments

@jaydenseric
Copy link

The JS result from a custom build is pretty nasty, why the extra semicolons? The extra semicolons occur in the development and minified builds. I may be a perfectionist but they do add a teeny bit to the file-size.

Also, the whitespace is inconsistent in development builds.

prism-js-untidy-compile-issue

@apfelbox
Copy link
Contributor

apfelbox commented Jun 8, 2014

This is due to the fact, that some minifiers strip the trailing ; of a file. So, if you just concatenate them, you will get invalid JS.
(Ok you could make the concatenation more intelligent, but this is a quick and easy fix.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants