-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathvue.config.js
50 lines (49 loc) · 1.48 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
const CopyPlugin = require("copy-webpack-plugin");
const WorkerPlugin = require('worker-plugin');
module.exports = {
"transpileDependencies": [
"vuetify"
],
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
return [{
feedbackFinEndpoint: process.env.VUE_APP_FEEDBACK_FIN_ENDPOINT,
feedbackDomain: process.env.VUE_APP_MAIN_DOMAIN,
isProduction: process.env.NODE_ENV == 'production',
...args['0']
}];
})
},
configureWebpack: {
devtool: "source-map",
devServer: {
host: '0.0.0.0',
port: 8080,
public: 'app.ethernal.local:8080',
hot: true,
disableHostCheck: true,
allowedHosts: ['app.ethernal.local', '.ethernal.explorer'],
headers: {
'Document-Policy': 'js-profiling'
},
proxy: {
'/api/[1-9]\\d*/(envelope|minidump|security|store)/': { target: process.env.SENTRY_URL }
}
},
plugins: [
new CopyPlugin({
patterns: [
{ from: './_redirects', to: './' },
{ from: './_headers', to: './' }
]
}),
new WorkerPlugin()
],
externals: {
fsevents: "require('fsevents')",
'fs-extra': '{}'
}
}
}