forked from tryethernal/ethernal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
39 lines (38 loc) · 1.05 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
const CopyPlugin = require("copy-webpack-plugin");
const WorkerPlugin = require('worker-plugin');
process.env.VUE_APP_VERSION = process.env.COMMIT_REF ? process.env.COMMIT_REF.slice(-5) : '/';
module.exports = {
"transpileDependencies": [
"vuetify"
],
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
return [{
feedbackDomain: process.env.VUE_APP_MAIN_DOMAIN,
...args['0']
}];
})
},
configureWebpack: {
devServer: {
host: '0.0.0.0',
hot: true,
disableHostCheck: true,
allowedHosts: ['app.ethernal.local', '.ethernal.explorer']
},
plugins: [
new CopyPlugin({
patterns: [
{ from: './_redirects', to: './' }
]
}),
new WorkerPlugin()
],
externals: {
fsevents: "require('fsevents')",
'fs-extra': '{}'
}
}
}