Always use public/packs and not public/packs-test for assets (#39623)

This commit is contained in:
Claire authored and GitHub committed 2026-06-25 15:09:29 +00:00
1 parent f2e10fd5db
commit 19b7325c8e
2 files changed
+2 -4

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@
},
"test": {
"autoBuild": true,
"publicOutputDir": "packs-test",
"publicOutputDir": "packs",
"port": 3037
}
}
+1 -3
View File
@@ -33,9 +33,7 @@ export const config: UserConfigFnPromise = async ({ mode, command }) => {
const isProdBuild = mode === 'production' && command === 'build';
let outDirName = 'packs-dev';
if (mode === 'test') {
outDirName = 'packs-test';
} else if (mode === 'production') {
if (mode === 'test' || mode === 'production') {
outDirName = 'packs';
}
const outDir = path.resolve('public', outDirName);