aitoroses / vulcanize-loader

Polymers vulcanize tool loader for webpack
24 stars 8 forks source link

Webpack output.publicPath Config not respected #8

Closed caleblloyd closed 7 years ago

caleblloyd commented 7 years ago

This library presently does not respect the webpack global output.publicPath configuration

This currently causes the vulcanized HTML import to always point to /imports.html, even if output.publicPath='/assets/', meaning the vulcanized HTML import should actually point to /assets/imports.html

It also causes issues if <base> is used, for example <base href="/assets/">. In this case, the publicPath should be output.publicPath='' and the link to the vulcanized HTML import should be imports.html. Presently it forces a leading slash by outputting /imports.html, breaking the assumptions of <base>