0.0.1 • Published 3 years ago

highlighted-sources v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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}).

0.0.1

3 years ago