-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
46 lines (45 loc) · 900 Bytes
/
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
require('dotenv').config()
const CaseSensitivePathPlugin = require('case-sensitive-paths-webpack-plugin')
module.exports = {
srcDir: 'src',
mode: 'universal',
env: process.env,
loading: false,
server: {
host: '0.0.0.0'
},
head: {
titleTemplate: '%s - sno2wman.dev'
},
modules: [
'@nuxtjs/icon',
'@nuxtjs/meta',
'@nuxtjs/style-resources',
'nuxt-webfontloader',
'nuxt-imagemin'
],
css: ['minireset.css'],
styleResources: {
scss: ['@brandcolors/sass']
},
webfontloader: {
google: {
families: ['Raleway:100', 'Noto Sans JP:400', 'Source Code Pro:400']
}
},
meta: {},
build: {
extend(config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
},
plugins: [new CaseSensitivePathPlugin()]
},
imagemin: {}
}