Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Use HtmlWebpackPlugin to inject html during webpack build #302

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DeekshithShetty
Copy link

@DeekshithShetty DeekshithShetty commented Aug 16, 2018

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

@black-snow
Copy link
Contributor

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

@DeekshithShetty
Copy link
Author

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

@black-snow
Copy link
Contributor

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

@DeekshithShetty
Copy link
Author

DeekshithShetty commented Aug 16, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants