This repository has been archived by the owner on Mar 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
49 lines (48 loc) · 1.55 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
const path = require('path')
module.exports = {
lintOnSave: false,
pages: {
index: {
// entry for the page
entry: 'src/main.js',
// the source template
template: 'public/index.html',
// output as dist/index.html
filename: 'index.html',
// when using title option,
// template title tag needs to be <title><%= htmlWebpackPlugin.options.title %></title>
title: 'Video Face Recognition',
// chunks to include on this page, by default includes
// extracted common chunks and vendor chunks.
chunks: ['chunk-vendors', 'chunk-common', 'index'],
},
},
configureWebpack: {
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': path.resolve('src'),
'src': path.resolve('src'),
'assets': path.resolve('src/assets'),
'components': path.resolve('src/components'),
'services': path.resolve('src/services'),
'directives': path.resolve('src/directives'),
'vuestic-mixins': path.resolve('src/vuestic-theme/vuestic-mixins'),
'vuestic-components': path.resolve('src/vuestic-theme/vuestic-components'),
'vuestic-directives': path.resolve('src/vuestic-theme/vuestic-directives'),
'vuestic-theme': path.resolve('src/vuestic-theme'),
'data': path.resolve('src/data'),
'vuex-store': path.resolve('src/store')
}
},
},
css: {
loaderOptions: {
// pass options to sass-loader
sass: {
// @/ is an alias to src/
data: `@import "@/sass/shared.scss";`
}
}
}
}