mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-05-04 01:00:56 +08:00
fix(asset): asset path is not resolved correctly when outDir is specified #117
This commit is contained in:
parent
a84ae9e7e0
commit
55be651207
@ -71,7 +71,7 @@ export default function assetPlugin(): Plugin {
|
|||||||
configResolved(config): void {
|
configResolved(config): void {
|
||||||
sourcemap = config.build.sourcemap
|
sourcemap = config.build.sourcemap
|
||||||
publicDir = normalizePath(config.publicDir)
|
publicDir = normalizePath(config.publicDir)
|
||||||
outDir = normalizePath(config.build.outDir)
|
outDir = normalizePath(path.resolve(config.root, config.build.outDir))
|
||||||
},
|
},
|
||||||
resolveId(id): string | void {
|
resolveId(id): string | void {
|
||||||
if (id === wasmHelperId) {
|
if (id === wasmHelperId) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user