copy-webpack-plugin插件

less than 1 minute read

webpack 打包报错

Note:【报错】HookWebpackError: Only file and data URLs are supported by the default ESM loader.

解决

copy-webpack-plugin版本从^10.2.4 降低到 9,可以解决打包出错的问题。

npm i -D copy-webpack-plugin@9

Tags:

Updated: