Fix PUBLIC_URL
This commit is contained in:
parent
ec556ab25c
commit
a24a74e9e1
1 changed files with 2 additions and 1 deletions
|
@ -14,13 +14,14 @@ export default defineConfig(async ({ mode }) => {
|
||||||
} catch (e) { }
|
} catch (e) { }
|
||||||
}
|
}
|
||||||
if (!hash) hash = '';
|
if (!hash) hash = '';
|
||||||
|
console.log('commit hash', hash);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
define: {
|
define: {
|
||||||
__VERSION__: JSON.stringify(pkg.version),
|
__VERSION__: JSON.stringify(pkg.version),
|
||||||
__COMMIT_HASH__: JSON.stringify(hash),
|
__COMMIT_HASH__: JSON.stringify(hash),
|
||||||
'process.env.NODE_ENV': JSON.stringify(mode),
|
'process.env.NODE_ENV': JSON.stringify(mode),
|
||||||
'process.env.PUBLIC_URL': JSON.stringify('./'),
|
'process.env.PUBLIC_URL': JSON.stringify(''),
|
||||||
},
|
},
|
||||||
base: './',
|
base: './',
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|
Loading…
Reference in a new issue