修改 monaco-editor 静态资源地址

This commit is contained in:
whyour
2024-01-10 22:12:41 +08:00
parent b79d10b452
commit 4e66a3aff5
3 changed files with 10 additions and 3 deletions
+6
View File
@@ -47,4 +47,10 @@ export default defineConfig({
'https://gw.alipayobjects.com/os/lib/react/18.2.0/umd/react.production.min.js',
'https://gw.alipayobjects.com/os/lib/react-dom/18.2.0/umd/react-dom.production.min.js',
],
copy: [
{
from: 'node_modules/monaco-editor/min/vs',
to: 'static/dist/monaco-editor/min/vs',
},
],
});