-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnuxt.config.js
More file actions
69 lines (59 loc) · 1.35 KB
/
nuxt.config.js
File metadata and controls
69 lines (59 loc) · 1.35 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Node imports
import path from "node:path";
// Local imports
import package_json from "./package.json";
const __dirname = import.meta.dirname;
export default defineNuxtConfig({
runtimeConfig: {
public: {
COMMAND_BACK: "opengeodeweb-back",
COMMAND_VIEWER: "opengeodeweb-viewer",
NUXT_ROOT_PATH: __dirname,
MODE: process.env.MODE || "CLOUD",
PROJECT: package_json.name,
},
},
modules: [["@pinia/nuxt", { autoImports: ["defineStore", "storeToRefs"] }], "@vueuse/nuxt"],
imports: {
scan: false,
},
alias: {
"@ogw_front": path.resolve(__dirname, "app"),
"@ogw_internal": path.resolve(__dirname, "internal"),
"@ogw_server": path.resolve(__dirname, "server"),
"@ogw_tests": path.resolve(__dirname, "tests"),
},
// ** Global CSS
css: ["vuetify/lib/styles/main.sass"],
// ** Build configuration
build: {
transpile: ["vuetify"],
},
vuetify: {
vuetifyOptions: {
defaults: {
VTooltip: {
openDelay: 500,
},
},
},
},
vue: {
compilerOptions: {
isCustomElement: (tag) => ["md-linedivider"].includes(tag),
},
},
vite: {
optimizeDeps: {
include: [
"ajv",
"fast-deep-equal",
"globalthis",
"h3",
"js-file-download",
"lodash",
"seedrandom",
],
},
},
});