-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
29 lines (27 loc) · 917 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
// const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
// .BundleAnalyzerPlugin;
module.exports = {
chainWebpack: (config) => {
if (process.env.NODE_ENV === "production") {
config.optimization.minimizer("terser").tap((args) => {
args[0].terserOptions.compress.drop_console = true;
args[0].terserOptions.output = {
...args[0].terserOptions.output,
comments: false,
};
return args;
});
}
},
// configureWebpack: {
// plugins: [new BundleAnalyzerPlugin()]
// },
productionSourceMap: process.env.NODE_ENV !== "production",
pwa: {
name: "Lembongan",
themeColor: "#ffffff",
msTileColor: "#ffffff",
appleMobileWebAppCapable: "yes",
appleMobileWebAppStatusBarStyle: "black-translucent",
},
};