Always use public/packs and not public/packs-test for assets (#39623)
This commit is contained in:
parent
27c66a997f
commit
1fd5fe741c
@ -17,7 +17,7 @@
|
||||
},
|
||||
"test": {
|
||||
"autoBuild": true,
|
||||
"publicOutputDir": "packs-test",
|
||||
"publicOutputDir": "packs",
|
||||
"port": 3037
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user