-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvue.config.js
47 lines (46 loc) · 1.29 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
/* eslint-disable */
const webpackConfig = require('./webpack.config');
const metadata = require('./web-metadata');
module.exports = {
runtimeCompiler: true,
publicPath: '/',
css: {
requireModuleExtension: true,
},
configureWebpack: webpackConfig,
chainWebpack: (config) => {
config.module
.rule('vue')
.use('vue-loader')
.loader('vue-loader')
.tap((options) => {
options.compilerOptions.whitespace = 'preserve';
return options;
});
config.plugin('html').tap((args) => {
args[0].title = metadata.title;
args[0].twitterData = metadata.twitterData;
args[0].keywords = metadata.keyWords;
args[0].desc = metadata.webSiteDesc;
args[0].url = metadata.baseSite;
args[0].BASE_URL = '';
args[0].minify = {
...args[0].minify,
caseSensitive: true,
collapseWhitespace: false,
conservativeCollapse: true,
keepClosingSlash: true,
minifyCSS: true,
minifyJS: true,
removeComments: true,
removeAttributeQuotes: false,
removeRedundantAttributes: true,
removeScriptTypeAttributes: false,
removeStyleLinkTypeAttributes: false,
};
return args;
});
},
lintOnSave: false,
transpileDependencies: ['vuetify'],
};