webpack中include和exclude

webpack配置时,为了提高解析速度,需要指定需要处理的文件。 有三种配置可以指定需要处理的文件: test include exclude test test: /.jsx?$/,复制代码 正则表达式,指定项目中所有的文件(包含node_modules)后缀名为.jsx 或者 .js的文件。 include 指定需要处理的文件。可以是具体的文件或者文件名...