forked from learningequality/kolibri-design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
53 lines (53 loc) · 1.42 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
export default {
mode: 'universal',
head: {
title: 'Kolibri Design System', // default
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/kolibri.ico' },
{
rel: 'stylesheet',
href:
'https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&display=swap&subset=cyrillic,cyrillic-ext,devanagari,greek,greek-ext,latin-ext,vietnamese',
},
],
},
rootDir: './',
srcDir: './docs/',
plugins: ['~/plugins/load-common-components.js', '~/plugins/load-lib-components.js'],
css: ['normalize.css/normalize.css', '~/assets/main.scss'],
build: {
extractCSS: true,
optimization: {
// this appears to be necessary to prevent a flash of unstyled text
splitChunks: {
cacheGroups: {
styles: {
name: 'styles',
test: /\.(css|vue|scss)$/,
chunks: 'all',
enforce: true,
},
},
},
},
extend(config) {
// handles <mat-svg/>, <ion-svg/>, <iconic-svg/>, and <file-svg/> svg inlining
config.module.rules.push({
test: /\.vue$/,
enforce: 'pre',
loader: 'svg-icon-inline-loader',
exclude: /node_modules/,
});
},
},
vue: {
config: {
productionTip: false,
devtools: true,
},
},
};