-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.js
More file actions
61 lines (60 loc) · 1.57 KB
/
nuxt.config.js
File metadata and controls
61 lines (60 loc) · 1.57 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
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'Plotein',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Protein visualization' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/Plotein.png?v2' },
{ rel: 'stylesheet', href: 'https://rawgithub.com/Caged/d3-tip/master/examples/example-styles.css' }
]
},
css: [
'@fortawesome/fontawesome-free/css/all.css',
{ src: '~/assets/scss/main.scss', lang: 'scss'}
],
fonts: ['~/fonts/*'],
modules: [
[ 'bootstrap-vue/nuxt', { css: false } ]
],
plugins: [
{ src: '~/plugins/vue-fullscreen', ssr: false },
{ src: '~/plugins/notifications.js', ssr: false },
{ src: '~/plugins/tours.js' },
{ src: '~/plugins/global.js' },
{ src: '~/plugins/eventBus.js' },
],
loading: { color: '#fff' },
env: {
URL_API: process.env.URL_API
},
router: {
mode: 'hash',
},
build: {
// vendor: ['vue-fullscreen'],
extend (config, { isDev, isClient }) {
config.plugins = config.plugins.filter((plugin) => plugin.constructor.name !== 'UglifyJsPlugin')
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
},
render: {
bundleRenderer: {
shouldPreload: (file, type) => {
return ['script', 'style', 'font'].includes(type)
}
}
}
}