ice
ice copied to clipboard
Vite 模式构建不能利用缓存加速
What is the current behavior? 发生了什么?
在 Vite 模式下,连续构建两次,用 time 命令计算时间:
rm -rf node_modules && npm install
time npm run build
time npm run build
两次构建时间相差无几,似乎没有利用到缓存加速。
在 Webpack 模式下就能明显感觉到,第二次构建速度会比第一次快很多。
What is the expected behavior? 期望的结果是什么?
理论上,第二次构建可以利用缓存,第二次的构建时间应该明显短于第一次。
Any additional comments? 相关环境信息?
- ice.js Version:
- build.json Configuration:
- Node Version:
- Platform: