Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 390 Bytes

plugins.md

File metadata and controls

14 lines (10 loc) · 390 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
});