Vishal0203/file-include-webpack-plugin

ability to require / include assets

Opened this issue · 5 comments

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.

yes, like html-loader.
Maybe a smaller version to start with.
I'll look into image-webpack-loader and update more on my findings

Hello. You have developed a cool plugin, but I can't connect it and your example doesn't work. I am attaching a screenshot.

Screenshot_4

@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.

@Vishal0203 thank you very much.
Is there an example of using it with the HtmlWebpackPlugin plugin? Works without it but not with it.