-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
40 lines (39 loc) · 870 Bytes
/
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
const { resolve } = require('path');
require('dotenv').config();
module.exports = {
outputDir: 'dist/frontend',
publicPath: process.env.PUBLIC_PATH,
pages: {
index: {
entry: 'src/frontend/index.js',
template: 'src/frontend/index.html',
title: 'MRBoard',
},
},
runtimeCompiler: true,
devServer: {
port: process.env.VUE_APP_PORT,
public: `${process.env.VUE_APP_URL}:${process.env.VUE_APP_PORT}`,
watchOptions: {
poll: 1000,
aggregateTimeout: 500,
},
https: true,
key: resolve(__dirname, 'server.key'),
cert: resolve(__dirname, 'server.cert'),
proxy: {
'/': {
target: `http://0.0.0.0:${process.env.BACKEND_PORT}`,
},
},
writeToDisk: true,
},
configureWebpack: {
resolve: {
alias: {
'~': resolve(__dirname, 'src/frontend/components'),
'@': resolve(__dirname, 'src/frontend/styles'),
}
}
},
};