frontend-lessons / webpack-advanced

Cómo crear un proyecto webpack avanzado (con code-splitting, aliasing, optimización, crossbrowser y multiple entries)
MIT License
0 stars 0 forks source link

Create html pages with html-webpack-plugin #16

Open temple opened 4 years ago

temple commented 4 years ago

Summary

html-webpack-plugin creates an html output bundle by receiving a lodash template file and injects those selected bundles and chunks we need to make that html render a content dynamically.

We can follow two strategies in order to produce the output: Write down a plugin instance for each output page, or map "plugins" array to a configuration, which could be written in code or read from file system

Resources