webpack 插件 ProvidePlugin 的使用方法和 eslint 配置

ProvidePlugin :自动加载模块,而不必到处  import 或  require 。 (点击查看官方文档) 使用方法: 配置  w ebpack.config.js文件里 plugins 属性 new webpack.ProvidePlugin({ identifier: 'module-name', // ...etc }); 示例用法: ne...