This repository has been archived by the owner on Jun 13, 2021. It is now read-only.
forked from beastlybeast/SignificantTrades
-
Notifications
You must be signed in to change notification settings - Fork 211
/
vue.config.js
63 lines (59 loc) · 1.58 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
var date = new Date()
process.env.VUE_APP_VERSION = require('./package.json').version
process.env.VUE_APP_BUILD_DATE = date.getDate() + ' ' + date.toLocaleString('en-US', { month: 'short' }).toLowerCase()
process.env.VUE_APP_PROXY_URL = process.env.PROXY_URL
process.env.VUE_APP_API_URL = process.env.API_URL
process.env.VUE_APP_API_SUPPORTED_PAIRS = process.env.API_SUPPORTED_PAIRS
module.exports = {
devServer: {
// progress: true,
hot: true,
inline: true,
// https: true,
// port: 8081,
historyApiFallback: true,
proxy: [
'https://api.kraken.com',
'https://api.binance.com',
'https://api.bitfinex.com',
'https://api.gdax.com',
'https://api.pro.coinbase.com',
'https://api.prime.coinbase.com',
'https://www.bitstamp.net',
'https://api.hitbtc.com',
'https://www.poloniex.com',
'https://www.okex.com',
'https://api.huobi.pro',
'https://www.bitmex.com',
'https://api.coinex.com',
'https://api.liquid.com',
'https://www.deribit.com',
'https://fapi.binance.com',
'https://api.hbdm.com',
'https://ftx.com'
].reduce((obj, domain) => {
const reg = `${domain}`
obj[reg] = {
target: domain,
secure: false,
changeOrigin: true,
pathRewrite: {
[domain]: ''
}
}
return obj
}, {})
},
css: {
loaderOptions: {
sass: {
prependData: `@import "@/assets/sass/variables.scss";`
}
}
},
pwa: {
name: 'SignificantTrades',
themeColor: '#43a047',
msTileColor: '#43a047'
}
}