forked from synclounge/synclounge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
54 lines (45 loc) · 1.14 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
const path = require('path');
const config = require('./config');
const configFile = 'public/config.json';
const appConfig = config.get(configFile);
console.log(appConfig);
config.save(appConfig, configFile);
const pkgVersion = require('./package.json').version;
process.env.VUE_APP_VERSION = process.env.VERSION || pkgVersion;
module.exports = {
// Relative publicPath to support subfolders
publicPath: '',
transpileDependencies: ['vuetify'],
integrity: true,
configureWebpack: {
resolve: {
alias: {
// Alias @ to /src folder for ES/TS imports
'@': path.join(__dirname, '/src'),
},
},
node: false,
},
pluginOptions: {
lintStyleOnBuild: true,
stylelint: {},
},
// devServer: {
// disableHostCheck: true,
// },
// https://github.com/vuejs/vue-cli/issues/3771
css: {
extract: process.env.NODE_ENV === 'production' ? {
ignoreOrder: true,
} : false,
},
chainWebpack: (conf) => {
conf
.plugin('html')
.tap((args) => {
// eslint-disable-next-line no-param-reassign
args[0].title = 'SyncLounge';
return args;
});
},
};