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:
Output WC files to ${this.options.output.path}/web-components
Construct returned href path using ${this.options.output.publicPath}/web-components
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 thehref
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:
${this.options.output.path}/web-components
href
path using${this.options.output.publicPath}/web-components