Closed 321638914 closed 10 months ago
Thanks for fix! But I get another issue: the default include option of this plugin is **/*
, which will include asset file like png and jpeg. In webpack environment, this plugin will change asset file content, so my image files can't display at all. I need to change include option to include: ['**/*.js', '**/*.ts']
to fix this problem. Vite environment work fine.
Yes, We do need better defaults, do you have any suggestions?
When I using this plugin with vue-cli5,
vue-cli-service serve
andvue-cli-service build
will throw error:I found html-webpack-plugin/lib/loader.js will check if there is any other loader, if exists it will return unmodified source, which cause error. After some dig, I found add transformInclude hook and
/\.html/
to plugin exclude config, unplugin will not create the loader which conflict with html-webpack-plugin and solve issue. But it also mean this plugin cant process html code. Maybe there is better way to fix this?