forked from edmcouncil/html-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
31 lines (30 loc) · 1.17 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
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 || '2020Q3'
module.exports = {
publicPath: `/${process.env.ONTPUB_FAMILY || 'fibo'}/`,
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: {
'^/fibo/ontology/api/search': {
target: 'https://spec.edmcouncil.org',
},
'^/fibo/ontology/api/module$': {
target: 'https://spec.edmcouncil.org',
},
'^/fibo/ontology/api/hint': {
target: 'https://spec.edmcouncil.org',
},
},
},
};