This repository has been archived by the owner on Nov 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
154 lines (152 loc) · 4.96 KB
/
vue.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
const fs = require('fs');
process.env.VUE_APP_HEADER = fs.readFileSync('./src/html/head.html');
process.env.VUE_APP_FOOTER = fs.readFileSync('./src/html/footer.html');
process.env.VUE_APP_HERO = fs.readFileSync('./src/html/hero.html');
process.env.VUE_APP_NAVBAR_SOLID = fs.readFileSync('./src/html/navbar_solid.html');
process.env.VUE_APP_NAVBAR_TRANS = fs.readFileSync('./src/html/navbar_trans.html');
process.env.VUE_APP_ICON_SECTION = fs.readFileSync('./src/html/icon-section.html');
process.env.VUE_APP_MINI_ICON_SECTION = fs.readFileSync('./src/html/mini-icon-section.html');
process.env.VUE_APP_IMAGE_LEFT = fs.readFileSync('./src/html/image-left.html');
process.env.VUE_APP_IMAGE_RIGHT = fs.readFileSync('./src/html/image-right.html');
process.env.VUE_APP_PRODUCTS = fs.readFileSync('./src/html/products.html');
process.env.VUE_APP_VIDEO = fs.readFileSync('./src/html/video.html');
process.env.VUE_APP_BANNER_STRIP = fs.readFileSync('./src/html/banner-strip.html');
process.env.VUE_APP_COOKIE = fs.readFileSync('./src/html/cookie.html');
process.env.VUE_APP_SIDE_BAR = fs.readFileSync('./src/html/side-bar.html');
module.exports = {
configureWebpack: {
resolve: {
//allow for @ or @src alias for src
alias: require('./aliases.config').webpack
}
},
chainWebpack: config => {
//turn off elint for webpack transpile
config.module.rules.delete('eslint');
},
runtimeCompiler: true,
css: {
sourceMap: true
},
outputDir: process.env.NODE_ENV === 'production' ?
'../../Amplify.Web' : './dist/',
assetsDir: 'assets',
filenameHashing: false,
pages: {
'index': {
entry: './src/main.js',
template: 'public/home/index.html',
title: 'Home'
},
'contact': {
entry: './src/main.js',
template: 'public/contact/index.html',
title: 'Contact'
},
'features': {
entry: './src/main.js',
template: 'public/features/index.html',
title: 'Features'
},
'products': {
entry: './src/main.js',
template: 'public/products/index.html',
title: 'Products'
},
'product': {
entry: './src/main.js',
template: 'public/product/index.html',
title: 'Product'
},
'search': {
entry: './src/main.js',
template: 'public/search/index.html',
title: 'Search'
},
'team': {
entry: './src/main.js',
template: 'public/team/index.html',
title: 'Team'
},
'profile': {
entry: './src/main.js',
template: 'public/profile/index.html',
title: 'Profile'
},
'articles': {
entry: './src/main.js',
template: 'public/articles/index.html',
title: 'Articles'
},
'article': {
entry: './src/main.js',
template: 'public/article/index.html',
title: 'Article'
},
'sitemap': {
entry: './src/main.js',
template: 'public/sitemap/index.html',
title: 'Sitemap'
},
'content-blocks': {
entry: './src/main.js',
template: 'public/content-blocks/index.html',
title: 'Content Blocks'
},
'accordion': {
entry: './src/main.js',
template: 'public/accordion/index.html',
title: 'Accordion'
},
'banner-strip': {
entry: './src/main.js',
template: 'public/banner-strip/index.html',
title: 'Banner Strip'
},
'code': {
entry: './src/main.js',
template: 'public/code/index.html',
title: 'Code'
},
'gallery': {
entry: './src/main.js',
template: 'public/gallery/index.html',
title: 'Gallery'
},
'images': {
entry: './src/main.js',
template: 'public/images/index.html',
title: 'Images'
},
'quote': {
entry: './src/main.js',
template: 'public/quote/index.html',
title: 'Quote'
},
'share-links': {
entry: './src/main.js',
template: 'public/share-links/index.html',
title: 'Share Links'
},
'slider': {
entry: './src/main.js',
template: 'public/slider/index.html',
title: 'Slider'
},
'tabs': {
entry: './src/main.js',
template: 'public/tabs/index.html',
title: 'Tabs'
},
'forms': {
entry: './src/main.js',
template: 'public/forms/index.html',
title: 'Forms'
},
'video': {
entry: './src/main.js',
template: 'public/video/index.html',
title: 'Video'
}
}
}