Replies: 2 comments 3 replies
-
Hello 👋 are you looking for the |
Beta Was this translation helpful? Give feedback.
1 reply
-
log:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environment
Reproduction
nuxt.config.ts
:Focus:
Describe the bug
我想要在构建完成后复制一些文件到
.output
文件夹的根目录下,#26623 的问题和我的类似但又有所不同,因为我要复制的文件和业务代码无关,尝试使用rollup-plugin-copy,发现该插件复制文件的时机是在构建完静态文件之后而不是在所有文件都构建完之后,这导致文件复制到.output
后在后续的构建操作会清空.output
文件夹从而导致之前复制的文件被删除,大概流程:rollup-plugin-copy
复制文件到.output
.output
I want to copy some files to the root directory of the
.output
folder after the build is completed. The issue is similar to #26623 but with a difference in that the files I want to copy are unrelated to the business code. I tried using rollup-plugin-copy and found that the plugin copies the files after building the static files, rather than after building all files. This results in the files being copied to.output
, but subsequent build operations clear the.output
folder, causing the previously copied files to be deleted. The general process is as follows:rollup-plugin-copy
copies files to.output
.output
Additional context
No response
Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions