forked from edmcouncil/html-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
43 lines (42 loc) · 1.57 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
process.env.VUE_APP_PRODUCT = process.env.PRODUCT || process.env.ontology_publisher_current_product || 'htmlpages'
process.env.VUE_APP_BRANCH = (process.env.BRANCH || ( process.env.BRANCH_NAME === process.env.TAG_NAME ? 'master' : process.env.BRANCH_NAME || 'master')).toLowerCase()
process.env.VUE_APP_TAG = process.env.TAG || process.env.TAG_NAME || 'latest'
process.env.VUE_APP_TIMESTAMP = process.env.TIMESTAMP || '2020Q1'
module.exports = {
publicPath: `/${process.env.ONTPUB_FAMILY || 'auto'}/`,
assetsDir: `${process.env.VUE_APP_PRODUCT}/${process.env.VUE_APP_BRANCH}/${process.env.VUE_APP_TAG}`,
indexPath: `${process.env.VUE_APP_PRODUCT}/${process.env.VUE_APP_BRANCH}/${process.env.VUE_APP_TAG}/index.html`,
css: {
loaderOptions: {
sass: {
data: '@import "@/styles/global.scss";',
},
},
},
runtimeCompiler: true,
devServer: {
proxy: {
'^/auto/ontology/api/search$': {
target: 'http://auto-viewer.spec.edmcouncil.org',
// changeOrigin: true,
// secure:false,
// pathRewrite: {'^/auto': '/'},
//logLevel: 'debug'
},
'^/auto/ontology/api/module$': {
target: 'http://auto-viewer.spec.edmcouncil.org',
// changeOrigin: true,
// secure:false,
// pathRewrite: {'^/auto': '/'},
//logLevel: 'debug'
},
'^/auto/ontology/api/hint': {
target: 'http://auto-viewer.spec.edmcouncil.org',
// changeOrigin: true,
// secure:false,
// pathRewrite: {'^/auto': '/'},
//logLevel: 'debug'
},
},
},
};