jaketrent / html-webpack-template

a better default template for html-webpack-plugin
MIT License
830 stars 139 forks source link

Add support for prepending url to scripts output url #21

Closed mrexclamation closed 8 years ago

mrexclamation commented 8 years ago

I found a scenario where you need to prepend url to output assets url without touching the baseHref on document.

Output example :

<link href="src.4b3697e6ebd39ce5cf64.css" rel="stylesheet">

With prependUrl option set to '/assets/' :

<link href="/assets/src.4b3697e6ebd39ce5cf64.css" rel="stylesheet">