-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
60 lines (55 loc) · 1.78 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
/**
* This file is part of INU Cafeteria.
*
* Copyright 2022 INU Global App Center <potados99@gmail.com>
*
* INU Cafeteria is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* INU Cafeteria is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
const webpack = require('webpack');
module.exports = {
transpileDependencies: ['vuetify'],
configureWebpack: {
resolve: {
fallback: {
crypto: require.resolve('crypto-browserify'),
stream: require.resolve('stream-browserify'),
assert: require.resolve('assert'),
util: require.resolve('util'),
},
},
plugins: [
new webpack.ProvidePlugin({
process: 'process/browser',
}),
],
},
// 휴 프로덕션 webpack 빌드에서는 minify가 들어가기 때무네
// 클래스 이름을 기반으로 하는 reflection이 망할수밖에 없다!
// 그래서 minify 비활성화 ㅎㅎ
chainWebpack: config => {
config.optimization.minimizer('terser').tap(args => {
const {terserOptions} = args[0];
terserOptions.keep_classnames = true;
terserOptions.keep_fnames = true;
return args;
});
},
pages: {
index: {
entry: './src/main.ts',
template: './public/index.html',
title: '카페테리아 콘솔',
},
},
};