forked from pwa-builder/PWABuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
executable file
·67 lines (64 loc) · 3.35 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
// Info about configuration https://nuxtjs.org/guide/configuration/
const StyleLintPlugin = require('stylelint-webpack-plugin');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const env = require(`./environments/${process.env.NODE_ENV}`);
console.log(`Environment: ${process.env.NODE_ENV}`);
module.exports = {
env: env,
head: {
title: 'PWABuilder',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'All the tools you need to build and deploy your Progressive Web Apps.' },
{ name: 'msapplication-TileImage', content: '/Images/assets/icons/ms-icon-144x144-487a503e5cb29bbe0df7296db4093b7e.png' },
{ name: 'msapplication-TileColor', content: '#1FC2C8' },
{ name: 'theme-color', content: '#1FC2C8' },
{ name: 'ms.appid', content: 'PWABuilder' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'manifest', href: '/manifest.json' },
{ rel: 'apple-touch-icon', href: '/Images/assets/icons/apple-icon-06144a2a7b5101d447ecb4832502e73e.png' },
{ rel: 'apple-touch-icon', sizes: '57x57', href: '/Images/assets/icons/apple-icon-57x57-b82ef058b133f3197df61c326fa7cd6d.png' },
{ rel: 'apple-touch-icon', sizes: '72x72', href: '/Images/assets/icons/apple-icon-72x72-66bbf8447788cee426eebcddfa8eede8.png' },
{ rel: 'apple-touch-icon', sizes: '76x76', href: '/Images/assets/icons/apple-icon-76x76-8e88034967133f6a0454fe32e2070ffd.png' },
{ rel: 'apple-touch-icon', sizes: '114x114', href: '/Images/assets/icons/apple-icon-114x114-a2731f540851db0ed9fb4a7c74e2c6ce.png' },
{ rel: 'apple-touch-icon', sizes: '120x120', href: '/Images/assets/icons/apple-icon-120x120-06144a2a7b5101d447ecb4832502e73e.png' },
{ rel: 'apple-touch-icon', sizes: '144x144', href: '/Images/assets/icons/apple-icon-144x144-487a503e5cb29bbe0df7296db4093b7e.png' },
{ rel: 'apple-touch-icon', sizes: '152x152', href: '/Images/assets/icons/apple-icon-152x152-b600c0b40a21bbb9f8c1d18acde168e9.png' },
{ rel: 'apple-touch-icon', sizes: '180x180', href: '/Images/assets/icons/apple-icon-180x180-f0f5be1ded11c7ec66b00dd23c277a5d.png' }
],
script: [
{ src: '/pwabuilder-sw-register.js' },
{ src: 'https://az725175.vo.msecnd.net/scripts/jsll-4.js'},
{ src: "https://use.fontawesome.com/releases/v5.0.10/js/all.js" },
{ src: '/awa-register.js'}
]
},
loading: { color: '#1FC2C8' },
css: ['prismjs/themes/prism-okaidia.css', '~/assets/scss/app.scss'],
build: {
extractCSS: true,
vendor: ['babel-polyfill', 'vuex-class', 'nuxt-class-component', 'vue-i18n', 'prismjs'],
plugins: [
new StyleLintPlugin({
files: ['**/*.scss', '**/*.vue'],
failOnError: false,
syntax: 'scss'
}),
new ForkTsCheckerWebpackPlugin({
tslint: true,
vue: true
})
]
},
router: {
middleware: 'i18n'
},
plugins: ['~/plugins/i18n.js'],
modules: [
'~/modules/typescript',
'@nuxtjs/axios'
]
}