chore: add vs dist server for monaco -- change path

This commit is contained in:
engigu
2026-03-11 11:50:06 +08:00
parent e8f3766981
commit db2bbd5d4d
3 changed files with 7 additions and 7 deletions
+6 -1
View File
@@ -12,7 +12,7 @@ export default defineConfig({
targets: [
{
src: 'node_modules/monaco-editor/min/vs',
dest: '.'
dest: 'assets'
}
]
})
@@ -53,5 +53,10 @@ export default defineConfig({
}
}
}
},
define: {
// Define MONACO_BASE_URL for monaco-editor to correctly load its workers and assets
// This path should match the destination of viteStaticCopy for monaco-editor's 'vs' folder
MONACO_BASE_URL: JSON.stringify('./assets/vs')
}
})