Skip to content

Commit

Permalink
chore: add plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Subilan committed Sep 18, 2024
1 parent 0578424 commit d1f81ce
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
31 changes: 23 additions & 8 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
import svgLoader from 'vite-svg-loader';

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
compatibilityDate: '2024-04-03',

devtools: {
enabled: false
},

devServer: {
port: 7070
},

devtools: {
enabled: false
},
modules: ['@nuxt/image'],

devServer: {
port: 7070
},
vite: {
plugins: [
svgLoader()
]
},

modules: ['@nuxt/image'],
plugins: [
{
src: '@/plugins/openlayer',
mode: 'client'
}
]
})
6 changes: 6 additions & 0 deletions plugins/openlayer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineNuxtPlugin } from '#app'
import OpenLayers from 'vue3-openlayers'

export default defineNuxtPlugin(nuxtApp => {
nuxtApp.vueApp.use(OpenLayers)
})

0 comments on commit d1f81ce

Please sign in to comment.