This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
63 lines (62 loc) · 1.61 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
// const fs = require('fs');
// const CompressionPlugin = require("compression-webpack-plugin");
module.exports = {
pages: {
index: {
entry: "src/entries/index.js",
template: 'public/index.html',
filename: 'index.html',
title: 'EAMS',
chunks: ['chunk-vendors', 'chunk-common', 'index']
}
},
outputDir: '../api/public',
indexPath: process.env.NODE_ENV === 'production' ? '../api/resources/views/index.blade.php' : 'index.html',
// configureWebpack: {
//
// },
devServer: {
// host: 'eams.orb.local',
// port: 443,
// http2: true,
// https: {
// key: fs.readFileSync('certs/fullchain.key'),
// cert: fs.readFileSync('certs/fullchain.cer'),
// ca: fs.readFileSync('certs/ca-bundle.trust.crt'),
// },
proxy: {
// '/api': {
// ws: true,
// secure: false,
// target: 'https://www.sjms.local',
// changeOrigin: true,
// pathRewrite: {
// '^/api': '/api'
// }
// },
'/broadcasting': {
ws: true,
secure: false,
target: 'https://www.sjms.local',
changeOrigin: true,
pathRewrite: {
'^/broadcasting': '/broadcasting'
}
}
},
compress: true,
open: 'Google Chrome'
},
// configureWebpack: config => {
// if (process.env.NODE_ENV === 'production') {
// config.plugins.push(new CompressionPlugin({
// algorithm: 'gzip',
// test: /\.js$|\.css/,
// threshold: 10240,
// minRatio: 0.8,
// deleteOriginalAssets: true
// })
// )
// }
// }
};