module.js
1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* 모듈에 관련된 nuxt 옵션을 정리합니다.
* 해당 옵션은 아래와 같습니다.
* module, plugin, alias
*/
import { resolve } from 'path';
export default {
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
resolve(__dirname, '../src/plugins/ApiClient/index'),
resolve(__dirname, '../src/plugins/antDesign'),
resolve(__dirname, '../src/plugins/Dayjs/index'),
{ src: '@/plugins/client-only.client.js' },
{ src: '@/plugins/globalMixins' },
{ src: '@/plugins/vuelayers.js', ssr: false },
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
'@nuxtjs/style-resources',
'@nuxtjs/auth-next',
'@nuxtjs/sitemap',
'@nuxtjs/robots',
'nuxt-socket-io',
'nuxt-leaflet',
resolve(__dirname, '../src/modules/vuelayers.js'),
],
// alias
alias: {
'@': resolve(__dirname, '../src/'),
images: resolve(__dirname, '../src/assets/images'),
styles: resolve(__dirname, '../src/assets/styles'),
},
};