Created
January 12, 2022 05:07
-
-
Save YonatanKra/99ad52ccd306510f7f2972dcba5294b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const htmlGenerators = listOfComponents.reduce((entries, componentName) => { | |
entries.push(new HtmlWebpackPlugin({ | |
inject: true, | |
chunks: [componentName], | |
filename: `${componentName}.html` | |
})); | |
return entries; | |
}, []); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment