main.ts 537 B

123456789101112131415161718192021
  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. import 'bootstrap/dist/js/bootstrap'
  8. const app = createApp(App)
  9. const pinia = createPinia()
  10. app.use(pinia)
  11. app.use(VueMonacoEditorPlugin, {
  12. paths: {
  13. // The recommended CDN config
  14. vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.47.0/min/vs'
  15. },
  16. })
  17. app.mount('#app')