首页 > Web开发 > 详细

Webpack Plugin

时间:2017-02-16 11:15:30      阅读:297      评论:0      收藏:0      [点我收藏+]

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/

Webpack Plugin

原文:http://www.cnblogs.com/tekkaman/p/6404415.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!