1.修改自定义插件(custom-plugin)的配置文件如下。:[newCopyWebpackPlugin([{//插件中静态文件的地址from:path.join(__dirname,'../node_modules/custom-plugin/dist/imgs'),//访问时的地址:'custom-plugin/imgs',ignore:['.js']}])]2.使用项目中的代码

1.修改自定义插件(custom-plugin)的配置文件如下。:[newCopyWebpackPlugin([{//插件中静态文件的地址from:path.join(__dirname,'../node_modules/custom-plugin/dist/imgs'),//访问时的地址:'custom-plugin/imgs',ignore:['.js']}])]2.使用项目中的代码