Open mwoz123 opened 3 years ago
Hi! If I'm understanding correctly, you are trying to add an asset that doesn't exist when the build starts and is generated by webpack? This plugin expects all the assets to exist before the build starts...
Normally it is expected that all webpack generated files will already be handled by the html-webpack-plugin
that this plugin is built on top of.
Also the fact that both this plugin and the webpack plugin you mentioned are using the processAssets
webpack hook could make this complicated.
Have you considered filing an issue on the webpack-merge-and-include-globally
repository to ask why the generated assets are not being output by html-webpack-plugin
?
Sure I'll. Just didn't understand why it couldn't be generated..
In my webpack configuration I'm using https://www.npmjs.com/package/webpack-merge-and-include-globally which concatenates number of legacy es5 global scripts into one (named
es5-legacy-global-script<hash>.js
)My html-webpack-tags-plugin configuration is:
because it's not a copied script doesn't exist before webpacks run. so I'm getting error:
Workaround is to create that file (can be empty) in
dist
folder..but this means that on git I should keep this file, which is a bad idea:(
Is there a way to fix it? ps:
globalPath
param is required:/