处理不需要使用webpack统一打包处理或webpack不支持的文件

安装

npm install copy-webpack-plugin --save-dev

配置

const copyWebpackPlugin=require('copy-webpack-plugin');

module.exports={
    plugins:[
        new copyWebpackPlugin([
        {
            from:__dirname+"/public/jquery.js",
            to:__dirname+"/build/jquery.js"
        },
        {
            from:__dirname+"/public/index.js",
            to:__dirname+"/build/index.js"
        }
        ])
    ]
}

相关文章:

  • 2021-11-09
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-15
相关资源
相似解决方案