You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Joseph Hou edited this page Feb 10, 2016
·
10 revisions
Use plugins to add functionality typically related to bundles in webpack. For example, the BellOnBundlerErrorPlugin will notify you of an error in the bundler build process.
Built-in plugins
Plugins are included in your module by using the plugins property in the webpack config.
// webpack should be in the node_modules directory, install if not.varwebpack=require("webpack");module.exports={plugins: [newwebpack.ResolverPlugin([newwebpack.ResolverPlugin.DirectoryDescriptionFilePlugin("bower.json",["main"])],["normal","loader"])]};
Other plugins
Plugins that are not built-in may be installed via npm if published there, or by other means if not: