-
Notifications
You must be signed in to change notification settings - Fork 16
/
vue.config.js
59 lines (58 loc) · 1.34 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
55
56
57
58
59
require = require("esm")(module);
const { routes } = require("./src/routes.js");
const ImageminPlugin = require("imagemin-webpack-plugin").default;
module.exports = {
chainWebpack: (config) => {
config.resolve.symlinks(false);
},
configureWebpack: {
plugins: [
new ImageminPlugin({
disable: process.env.NODE_ENV !== "production",
})
]
},
devServer: {// Environment configuration
host: "0.0.0.0",
socket: "socket",
port: 8080,
https: false,
hotOnly: false,
public: "0.0.0.0:8080",
disableHostCheck:true,
open: true // Configure to automatically start the browser
},
pwa: {
name: process.env.VUE_APP_COMPANY_NAME,
workboxOptions: {
skipWaiting: true,
}
},
css: {
loaderOptions: {
scss: {
additionalData: "@import \"~@/styles/variables.scss\";"
},
}
},
pluginOptions: {
webpackBundleAnalyzer: {
openAnalyzer: false,
analyzerMode: process.env.NODE_ENV === "development" ? "server" : "static",
reportFilename: "build_analysis.html"
},
sitemap: {
baseURL: "https://keyframes.app",
outputDir: "dist",
trailingSlash: true,
defaults: {
lastmod: new Date(),
changefreq: "daily",
priority: 0.5,
},
routes,
},
},
productionSourceMap: false,
publicPath: process.env.VUE_APP_BASE_PATH
};