-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnuxt.config.js
More file actions
88 lines (81 loc) · 3.21 KB
/
Copy pathnuxt.config.js
File metadata and controls
88 lines (81 loc) · 3.21 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
export default {
// Target: https://go.nuxtjs.dev/config-target
target: "static",
ssr: false,
server: {
port: 3000,
},
env: {
SONIFICATION_MIN_TICK_TIME_SECONDS: 0.01, //principio di indeterminazione tonale
REPEAT_SAME_TEXT_TIME_THRESHOLD_SECONDS: 1,
SONIFICATION_BATCH_SONIFICATION_TIME_SECONDS: 5,
INTERACTION_SONIFICATION_HOLD_KEY_TICK_TIME_SECONDS: 1,
TEXT_TO_SPEECH_MONITOR_QUEUE_INTERVAL_MS: 50,
},
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: "AudioFunctions 2.0",
htmlAttrs: {
lang: "it-IT",
},
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ hid: "description", name: "description", content: "" },
{ name: "format-detection", content: "telephone=no" },
],
script: [
{
src: "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS_HTML",
},
],
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: ["~/assets/mathlive-fonts.css", "~/assets/css/main.scss"],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
{ src: "~/plugins/vue-resize.js", mode: "client" },
{ src: "~/plugins/mathlive-input.js", mode: "client" },
{ src: "~/plugins/vue-a11y-announcer.js", mode: "client" },
{ src: "~/plugins/validate-function.js", mode: "client" },
{ src: "~/plugins/enums.js", mode: "client" },
{ src: "~/plugins/session-data-serializer.js", mode: "client" },
{ src: "~/plugins/sound.js", mode: "client" },
{ src: "~/plugins/math.js", mode: "client" },
{ src: "~/plugins/vue-shortkey.js", mode: "client" },
{ src: "~/plugins/vue-clipboard.js", mode: "client" },
{ src: "~/plugins/vue-mathjax.js", mode: "client" },
{ src: "~/plugins/vue-mouseover.js", mode: "client" },
{ src: "~/plugins/vue-visibility.js", mode: "client" },
{ src: "~/plugins/function-parser.js", mode: "client" },
{ src: "~/plugins/function-utility.js", mode: "client" },
],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: ["vue-ssr-carousel/nuxt"],
// Modules: https://go.nuxtjs.dev/config-modules
modules: ["bootstrap-vue/nuxt", "@nuxtjs/dotenv"],
bootstrapVue: {
icons: true,
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
loaders: {
sass: {
implementation: require("sass"),
},
scss: {
implementation: require("sass"),
},
},
extend(config, ctx) {
if (ctx.isDev) {
config.devtool = ctx.isClient ? "source-map" : "inline-source-map"; //per poter debuggare mettendo breakpoints negli hook direttamente del componente vue
}
config.resolve.alias["vue"] = "vue/dist/vue.common"; //serve per mathlive perchè mi da questo errore: https://github.com/nuxt/nuxt.js/issues/1142 . Nella doc di vue-mathlive è specificato che ci potrebbe essere (vedi "Caution" https://github.com/arnog/vue-mathlive )
},
transpile: ["function-plot", "mathlive"],
},
};