forked from Via-Appia/via-appia-online-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
126 lines (116 loc) · 4.15 KB
/
nuxt.config.js
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
export default {
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
ssr: false,
env: {
isLocalPointClouds: process.env.LOCAL_POINTCLUDS || false,
pointsBudget: process.env.POINTS_BUDGET || 3000000
},
// Netlify options
generate: {
fallback: true
},
// Debug local server from outside
server: {
host: 'localhost' // default: localhost // (host: '0' ...is not working for everyone)
},
watch: ['api'],
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'via-appia-viewer',
htmlAttrs: {
lang: 'en',
'data-theme': 'dark' // https://daisyui.com/docs/default-themes
},
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content: 'width=device-width, initial-scale=1'
},
{
hid: 'description',
name: 'description',
content: ''
}
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', type: 'text/css', href: '/Potree_1.8/build/potree/potree.css' },
{ rel: 'stylesheet', type: 'text/css', href: '/Potree_1.8/libs/jquery-ui/jquery-ui.min.css' },
{ rel: 'stylesheet', type: 'text/css', href: '/Potree_1.8/libs/openlayers3/ol.css' },
{ rel: 'stylesheet', type: 'text/css', href: '/Potree_1.8/libs/spectrum/spectrum.css' },
{ rel: 'stylesheet', type: 'text/css', href: '/Potree_1.8/libs/jstree/themes/mixed/style.css' }
],
script: [
{ src: '/Potree_1.8/libs/jquery/jquery-3.1.1.min.js' },
{ src: '/Potree_1.8/libs/spectrum/spectrum.js' },
{ src: '/Potree_1.8/libs/jquery-ui/jquery-ui.min.js' },
{ src: '/Potree_1.8/libs/other/BinaryHeap.js' },
{ src: '/Potree_1.8/libs/tween/tween.min.js' },
{ src: '/Potree_1.8/libs/d3/d3.js' },
{ src: '/Potree_1.8/libs/proj4/proj4.js' },
{ src: '/Potree_1.8/libs/openlayers3/ol.js' },
{ src: '/Potree_1.8/libs/i18next/i18next.js' },
{ src: '/Potree_1.8/libs/jstree/jstree.js' },
{ src: '/Potree_1.8/libs/plasio/js/laslaz.js' },
{ src: '/Potree_1.8/build/potree/potree.js' },
{ src: '/Potree_1.8/libs/three.js/build/three.js' }
// { src: '/Potree_1.8/libs/jquery/jquery-3.1.1.min.js' },
// { src: '/Potree_1.8/libs/proj4/proj4.js' },
// { src: '/Potree_1.8/libs/three.js/build/three.min.js' },
// { src: '/Potree_1.8/build/potree/potree.js' }
// { src: '/Potree_1.8/libs/spectrum/spectrum.js' },
// { src: '/Potree_1.8/libs/jquery-ui/jquery-ui.min.js' },
// { src: '/Potree_1.8/libs/three.interaction.0.2.3.js' },
// { src: '/Potree_1.8/libs/other/BinaryHeap.js' },
// { src: '/Potree_1.8/libs/tween/tween.min.js' },
// { src: '/Potree_1.8/libs/d3/d3.js' },
// { src: '/Potree_1.8/libs/openlayers3/ol.js' },
// { src: '/Potree_1.8/libs/ci18next/i18next.js' },
// { src: '/Potree_1.8/libs/jstree/jstree.js' },
// { src: '/Potree_1.8/build/potree/potree.js' },
// { src: '/Potree_1.8/libs/plasio/js/laslaz.js' }
]
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [
'~/css/styles.css'
],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/eslint
'@nuxtjs/eslint-module',
// https://go.nuxtjs.dev/tailwindcss
'@nuxtjs/tailwindcss',
'@nuxtjs/composition-api/module',
'nuxt-use-motion'
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/content
'@nuxt/content'
],
// Content module configuration: https://go.nuxtjs.dev/config-content
content: {},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
// Listen to changes outside Nuxt default folders
hotMiddleware: {
client: {
overlay: false // Disable Nuxt Black Screen ESLint
}
},
extend (config, ctx) {
config.module.rules.push({
test: /\.ya?ml$/,
use: 'js-yaml-loader'
})
}
}
}