Tekkaman

导航

 

Webpack Plugin

  Since Loaders only execute transforms on a per-file basis, plugins are most commonly used (but not limited to) performing actions and custom functionality on "compilations" or "chunks" of your bundled modules (and so much more).

  In order to use a plugin, you just need to require() it and add it to the plugins array.

  Since you can use a plugin multiple times in a config for different purposes, you need to create an instance of it by calling it with new.

  

参考:

1、https://webpack.js.org/concepts/

posted on 2017-02-16 10:03  Tekkaman  阅读(144)  评论(0编辑  收藏  举报