rnicholus / web-components-loader

Webpack loader that makes it incredibly easy to import HTML-centric Web Components into your project.
https://www.npmjs.com/package/web-components-loader
MIT License
36 stars 3 forks source link

Better output path determination #9

Closed rnicholus closed 7 years ago

rnicholus commented 7 years ago

Currently, an output query param must be passed to the loader. This is used to determine where to store the outputted WC files and used to determine the path of the href returned by the loader for the HTML import. This is probably not ideal, since it is possible that this path is not the root of the public directory.

Instead, the logic should probably be as follows: