main.ts 499 B

12345678910111213141516171819
  1. import './assets/main.css'
  2. import { createApp } from 'vue'
  3. import App from './App.vue'
  4. import { createPinia } from 'pinia'
  5. import { install as VueMonacoEditorPlugin } from '@guolao/vue-monaco-editor'
  6. import 'bootstrap/dist/css/bootstrap.min.css'
  7. const app = createApp(App)
  8. const pinia = createPinia()
  9. app.use(pinia)
  10. app.use(VueMonacoEditorPlugin, {
  11. paths: {
  12. // The recommended CDN config
  13. vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.44.0/min/vs'
  14. },
  15. })
  16. app.mount('#app')