forked from hakatashi/smart-cube-timer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
69 lines (59 loc) · 1.07 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
const precss = require('precss');
const importUrl = require('postcss-import-url');
module.exports = {
mode: 'spa',
router: {
...(process.env.DEPLOY_ENV === 'GH_PAGES' ? {
base: '/smart-cube-timer/',
} : {}),
},
head: {
meta: [
{name: 'viewport', content: 'width=device-width, initial-scale=1'},
],
},
loading: {
color: '#9c27b0',
},
manifest: {
name: 'Smart Cube Timer',
short_name: 'Smart Cube Timer',
theme_color: '#9c27b0',
gcm_sender_id: '103953800507',
},
plugins: [
'~/plugins/vuetify',
],
css: [
'vuetify/dist/vuetify.css',
],
generate: {
minify: {
collapseWhitespace: true,
removeComments: true,
removeTagWhitespace: true,
},
},
build: {
postcss: [
precss(),
importUrl(),
],
extend(config) {
// For sylvester
config.node = {
fs: 'empty',
};
config.externals = (config.externals || []).concat(['lapack']);
},
},
modules: [
// '@nuxtjs/pwa',
['@nuxtjs/google-analytics', {
id: 'UA-43802516-6',
debug: {
sendHitTask: process.env.NODE_ENV === 'production',
},
}],
],
};