用途说明
ResolverPlugin ()
Apply a plugin (or array of plugins) to one or more resolvers (as specified in types).
pluginsa plugin or an array of plugins that should be applied to the resolver(s).typesa 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配置
|
|
案例
|
|