Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 389 Bytes

plugins.md

File metadata and controls

13 lines (10 loc) · 389 Bytes

Plugins

Plugins allow us to inject custom build steps during the bundling process.

A commonly used plugin is the html-webpack-plugin. This allows us to generate HTML files required for production. For example it can be used to inject script tags for the output bundles.

new HtmlWebpackPlugin({
  template: './src/index.html',
  inject: 'body',
  minify: false
});