码迷,mamicode.com
首页 > Web开发 > 详细

Webpack Plugin

时间:2017-02-16 11:17:56      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:.com   module   with   modules   logs   https   most   webp   conf   

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

标签:.com   module   with   modules   logs   https   most   webp   conf   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!