I am currently developing a VS Code module that incorporates highlight.js
to produce HTML for syntax highlighting of source code. Within the highlight.js
npm package, there is a directory named styles
containing various CSS files that I intend to utilize.
Is there a specific procedure I should follow in order to retrieve these CSS files during run-time?
I am referring to all of them.
It seems likely that utilizing something like require
will be necessary to ensure they are packaged even without individual references to each CSS file. However, I require assistance on how to achieve this.
Furthermore, how does one access these packaged resources?