用途说明
ResolverPlugin ()
Apply a plugin (or array of plugins) to one or more resolvers (as specified in types).
plugins
a plugin or an array of plugins that should be applied to the resolver(s).types
a resolver type or an array of resolver types (default: [“normal”], resolver types: normal, context, loader)
All plugins from enhanced-resolve are exported as properties for the ResolverPlugin.
webpack.config.js配置
|
|
案例
|
|