ability to require / include assets
Opened this issue · 5 comments
Vishal0203 commented
we should be able to require images etc in html files and the plugin should be able to resolve that and update that in the build out put.
b1nj commented
Like html-loader ? https://webpack.js.org/loaders/html-loader/
You need to implement an image optimizer like image-webpack-loader.
Vishal0203 commented
yes, like html-loader.
Maybe a smaller version to start with.
I'll look into image-webpack-loader and update more on my findings
IvanGrishov commented
Vishal0203 commented
@IvanGrishov you'll need to run npm install in the root directory as well. That's because I'm referring to the plugin directly via src
folder instead of node_modules
of example.
IvanGrishov commented
@Vishal0203 thank you very much.
Is there an example of using it with the HtmlWebpackPlugin plugin? Works without it but not with it.