-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
39 lines (39 loc) · 931 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
35
36
37
38
39
/**
* @type {import('@vue/cli-service').ProjectOptions}
*/
module.exports = {
publicPath: '/svg-filter-graph-builder/', // TODO: 如何区分 GitHub Actions 与 Vercel 打包环境?
css: {
loaderOptions: {
scss: {
// 全局注入这个文件
prependData: '@use "~@/styles/overrides/index.scss";'
}
}
},
productionSourceMap: false,
chainWebpack(config) {
config.plugin('html')
.tap(args => {
args[0].title = 'SVG Filter Graph Builder (by @gogoend)'
return args
})
.end()
.optimization.minimizer('terser').tap((args) => {
Object.assign(
args[0].terserOptions.compress,
{
warnings: true,
drop_console: true,
drop_debugger: true
}
)
return args
})
.end()
},
pwa: {
name: 'SVG Filter Graph Builder',
themeColor: '#333' //
}
}