mentaljam / rollup-plugin-html2

Rollup plugin to inject bundled files to an HTML template
https://www.npmjs.com/package/rollup-plugin-html2
MIT License
20 stars 5 forks source link

Add an onlinePath Argument #1

Closed WalkerKnapp closed 4 years ago

WalkerKnapp commented 4 years ago

Thank you for making this project, it has been incredibly useful.

There is a feature I believe is missing, though: rollup-plugin-bundle-html allows users to provide an onlinePath string to append to the start of resources, and as far as I could tell, there is no way to do this in rollup-plugin-html2. This would be a useful feature for publishing files to CDNs where resources won't be on the same path as a published html file.

mentaljam commented 4 years ago

Thank you! I just thought recently I need to implement it