forked from tryethernal/ethernal
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvue.config.js
More file actions
40 lines (39 loc) · 1.13 KB
/
Copy pathvue.config.js
File metadata and controls
40 lines (39 loc) · 1.13 KB
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
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 [{
enableAnalytics: !!process.env.VUE_APP_ENABLE_ANALYTICS,
enableFeedback: !!process.env.VUE_APP_ENABLE_FEEDBACK,
...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': '{}'
}
}
}