-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathvue.config.js
34 lines (27 loc) · 950 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
module.exports = {
publicPath: '',
transpileDependencies: ['vuetify'],
configureWebpack: {
devServer: {
historyApiFallback: false,
},
},
chainWebpack: (config) => {
if (process.env.NODE_ENV === 'production') {
// disable type checking on production build.
// I know what I'm doing!
// https://github.com/vuejs/vue-cli/issues/3157#issuecomment-629610739
config.plugins.delete('fork-ts-checker');
}
config.plugin('define').tap((args) => {
args[0].__SOURCE_REPOSITORIES__ = JSON.stringify(require('./scripts/const').repos);
args[0].__BUILD_TIME__ = Date.now();
return args;
});
config.plugin('html').tap((args) => {
args[0].title = 'Live2D Viewer Online';
return args;
});
config.resolve.set('fallback', { stream: false });
},
};