首页
科技
登录
6mi
u
盘
搜
搜 索
科技
Webpack 使用copy-webpack-plugin拷贝文件或目录修改最终输出路径的配置
Webpack 使用copy-webpack-plugin拷贝文件或目录修改最终输出路径的配置
it
2022-05-05
122
例如不需要原路径中的public路径:
new CopyWebpackPlugin([{ from: './public/**/*.png', to: path.resolve(__dirname , 'build'), transformPath(targetPath, absolutePath) { return targetPath.replace('public', '') }, toType: 'dir' }])
转载请注明原文地址: https://win8.8miu.com/read-12693.html
专利
最新回复
(
0
)