question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Building demo with `--no-minify` does not include correct highlight.js

See original GitHub issue

When building the demo for local testing/debugging without minifying the js

node tools/build.js -t browser --no-minify

copying the demo index.html does not adapt the included highlight.min.js to use the un-minified version.

Would it be possible to make this dynamic so that building and testing work out of the box even for the un-minified version?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
halirutancommented, Oct 31, 2020

@joshgoebel Great job. Haven’t tried it but I definitely saw your commit that fixed this. Thanks for that!

0reactions
joshgoebelcommented, Sep 28, 2020

@halirutan Also I’d suggest using tools/developer for debugging, not demo… it also doesn’t ahve this problem as it uses the non minified by default. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use highlight.js
You can get highlight.js as a hosted, or custom-build, browser script or as a server module. Right out of the box the browser...
Read more >
Weird Bug with Highlight.js - Perishable Press
The bug is that Highlight.js is applying syntax highlighting, even when the element does not include the required language- class.
Read more >
269 contributors - GitHub
JavaScript syntax highlighter with language auto-detection and zero dependencies. - highlight.js/CHANGES.md at main · highlightjs/highlight.js.
Read more >
Why my Highlight.js dosen't work correctly? - Stack Overflow
... as 'node_modules/highlight.js/build/styles/zenburn.css')? Also note, in some scenarios you may have to build the highlight.js package ...
Read more >
Line numbers — highlight.js 11.7.0 documentation
Highlight.js' notable lack of line numbers support is not an oversight but a ... in Highlight.js means that from that moment I will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found