uni-app 忽略 Vite 的 outDir,输出路径由 package.json scripts 中的 --outDir CLI 参数控制。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@@ -7,9 +7,6 @@ export default defineConfig(({ command, mode }) => {
return {
base: isBuild ? '/admin/h5/' : './',
plugins: [uni()],
- build: {
- outDir: '../car-wash-admin/src/main/resources/static/h5'
- },
css: {
preprocessorOptions: {
scss: {