highlighted-sources

0.0.1 • Public • Published

highlighted-sources

This transform implements a way to cache the contents of certain *.js files on bundling, filtering file names by comparing them with a given list of keywords through a Regexp. The source files are highlighted from strings to HTML with prism.js, before caching them as strings in a js object (indexed by keyword : {name : fileName, content, contentAsString}).

Dependents (0)

Package Sidebar

Install

npm i highlighted-sources

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

2.21 kB

Total Files

3

Last publish

Collaborators

  • vassilyb