mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-04-06 04:05:44 +08:00
fix(asset): asset handling error when hot reloading
This commit is contained in:
parent
583c318af1
commit
ed13174829
@ -68,6 +68,10 @@ export default function assetPlugin(): Plugin {
|
||||
name: 'vite:node-asset',
|
||||
apply: 'build',
|
||||
enforce: 'pre',
|
||||
buildStart(): void {
|
||||
publicAssetPathCache.clear()
|
||||
assetCache.clear()
|
||||
},
|
||||
configResolved(config): void {
|
||||
sourcemap = config.build.sourcemap
|
||||
publicDir = normalizePath(config.publicDir)
|
||||
|
Loading…
x
Reference in New Issue
Block a user