chore: add vs dist server for monaco -- change path
This commit is contained in:
+6
-1
@@ -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')
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user