Home
Sign Up
Sign In
V2EX
›
问与答
vite 打包的时候如何让其不删除 dist 里的原有文件?
stx0821
·
Nov 23, 2021
· 3555 views
This topic created in 1807 days ago, the information mentioned may be changed or developed.
用 vue-cli 有--no-clean 参数可以实现
vue-cli-service build --no-clean
vite 有类似功能的参数吗
vite build
vite
no-clean
build
参数
2 replies
•
2021-11-23 11:17:09 +08:00
masterV
Nov 23, 2021
1
1
有个`build.emptyOutDir`,设为 false 即可,或者 `npm build --emptyOutDir=false`。
[build-emptyoutdir](
https://cn.vitejs.dev/config/#build-emptyoutdir
)
catoncat
Nov 23, 2021
1
2
想起有人把 dist 指向了 / 造成的惨剧
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1469 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms ·
UTC 22:35
·
PVG 06:35
·
LAX 14:35
·
JFK 17:35
♥ Do have faith in what you're doing.
❯