file-include-webpack-plugin icon indicating copy to clipboard operation
file-include-webpack-plugin copied to clipboard

ability to require / include assets

Open Vishal0203 opened this issue 5 years ago • 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.

Vishal0203 avatar Apr 04 '19 02:04 Vishal0203

Like html-loader ? https://webpack.js.org/loaders/html-loader/

You need to implement an image optimizer like image-webpack-loader.

b1nj avatar Apr 06 '19 01:04 b1nj

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

Vishal0203 avatar Apr 06 '19 01:04 Vishal0203

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 avatar Feb 13 '22 09:02 IvanGrishov

@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 avatar Feb 14 '22 02:02 Vishal0203

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

IvanGrishov avatar Mar 19 '22 18:03 IvanGrishov