shameless plug incoming
I found webpack too heavy weight, especially when I'm already using browserify to inline my require()
's. So I wrote a ~30 line npm cli package using JS's string.replace
:
https://www.npmjs.com/package/inline-scripts.
Usage, $ inline-scripts src/index.html out/index.html