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

highlight.js is broken after minified #59

Open
magiclen opened this issue Jul 2, 2020 · 1 comment
Open

highlight.js is broken after minified #59

magiclen opened this issue Jul 2, 2020 · 1 comment

Comments

@magiclen
Copy link

magiclen commented Jul 2, 2020

Steps to Reproduce

  1. Go to this page and find the Custom package section.
  2. Cancel all languages.
  3. Click the Download button.
  4. Decompress highlight.zip.
  5. Include highlight.pack.js in a HTML file like below.
<!DOCTYPE html>
<html>
<head>
    <script src="highlight.pack.js"></script>
</head>
<body></body>
</html>

At this moment, use a web browser to open the HTML file. No errors are shown on the console.

  1. Minify highlight.pack.js by using minifier 0.0.32 ~ 0.0.36.
  2. Use a web browser to open the HTML file. The console shows Uncaught SyntaxError: Unexpected token '}'.
@GuillaumeGomez
Copy link
Owner

Thanks, I'll take a look as soon as I can.

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

No branches or pull requests

2 participants