I'm using webpack to output JS, SASS/CSS and HTML and some other operations, including babel.
I also have a series of static HTML files that have several operations run on them as well. While most examples show how to output one, two or three HTML files, using this:
new HtmlWebpackPlugin({
filename: 'html/index.html',
template: 'html/index.html'
}),
new HtmlWebpackPlugin({
filename: 'html/about.html',
template: 'html/about.html'
}),
new HtmlWebpackPlugin({
filename: 'html/settings.html',
template: 'html/settings.html'
}),
What if I can't predict how many pages there will be? What if there's 40+? How can I approach this better?
Still relatively new to webpack, but I've had experience with with gulp and grunt.