electron-boilerplate icon indicating copy to clipboard operation
electron-boilerplate copied to clipboard

Use HtmlWebpackPlugin to inject html during webpack build

Open DeekshithShetty opened this issue 6 years ago • 4 comments

This could reduce the drawback of the design mentioned in README.

DeekshithShetty avatar Aug 16 '18 09:08 DeekshithShetty

Do we then have to add a new object to webpack.base.config.js for every file we have?

black-snow avatar Aug 16 '18 11:08 black-snow

@black-snow Yes I believe so. Or else we could have a forEach loop that adds the object for each of the html files.

DeekshithShetty avatar Aug 16 '18 15:08 DeekshithShetty

adding things manually is nasty, I wouldn't use it if it forced me to :|

black-snow avatar Aug 16 '18 15:08 black-snow

Yes I agree. We could automate it by fetching *.html files using a regex. If we don't automate this, we would end up manually adding entries in .gitignore file. Updated the code to fetch *.html files.

DeekshithShetty avatar Aug 16 '18 15:08 DeekshithShetty