-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
82 lines (79 loc) · 2.19 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
const resolve = require('path').resolve
const envv = process.env.NODE_ENV === 'dev' ? '/' : '/pinball'
module.exports = {
mode: 'spa',
/*
** Headers of the page
*/
head: {
htmlAttrs: {
lang: 'pt-br',
},
titleTemplate: '%s | Nuxt-webapp',
title: 'Welcome Nuxt-webapp',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Hotsite - Fechadura Digital' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: `${envv}favicons/favicon.ico` },
{ rel: 'apple-touch-ico', type: 'image/x-icon', href: `${envv}favicons/apple-touch-icon.png` },
{ rel: 'icon', type: 'image/x-icon', href: `${envv}favicons/favicon-32x32.png` },
{ rel: 'icon', type: 'image/x-icon', href: `${envv}favicons/favicon-16x16.png` },
{ rel: 'manifest', type: 'image/x-icon', href: `${envv}favicons/manifest.json` },
{ rel: 'stylesheet', href: 'https://use.fontawesome.com/releases/v5.0.2/css/all.css' }
]
},
/*
** Customize the progress bar color
*/
loading: { color: '#1DAEEC' },
/*
** Custom route for production host (if in subfolder) Caso o projeto esteja na raiz do servidor comentar o comando abaixo
//put this in package.json : "dev": "NODE_ENV=dev nuxt"
*/
router: {
base: envv
},
/*
** Build configuration
*/
build: {
publicPath: '/assets/',
vendor: ['babel-polyfill', 'axios'],
/*
** Run ESLint on save
*/
/*
extend (config, ctx) {
if (ctx.dev && ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
*/
},
/* Import Buefy */
plugins: [
'~plugins/buefy',
{ src: '~plugins/vue-masonry', ssr: false }
],
/* Import My sass */
css: [
// SCSS file in the project
'@/assets/css/base.scss',
//'font-awesome/css/font-awesome.css',
],
modules: [
'nuxt-sass-resources-loader'
],
sassResources: [
resolve(__dirname, 'assets/css/vars.scss'),
resolve(__dirname, 'assets/css/mixins.scss')
]
}