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

This commit is contained in:
Claire committed 2026-07-02 14:14:43 +02:00
1 parent 27c66a997f
commit 1fd5fe741c
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);