This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
71 lines (71 loc) · 2.36 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
60
61
62
63
64
65
66
67
68
69
70
71
"use strict";
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
exports.__esModule = true;
var fs = require("fs");
// eslint-disable-next-line import/no-extraneous-dependencies
var path = require("path");
// eslint-disable-next-line import/no-extraneous-dependencies
var workbox_webpack_plugin_1 = require("workbox-webpack-plugin");
var webpack_bundle_analyzer_1 = require("webpack-bundle-analyzer");
module.exports = {
configureWebpack: {
plugins: __spreadArrays([
new workbox_webpack_plugin_1.GenerateSW({
exclude: [/\.html$/]
})
], (process.env.NODE_ENV === "production" ? [
new webpack_bundle_analyzer_1.BundleAnalyzerPlugin({
analyzerMode: "static",
analyzerPort: 8888
})
] : [])),
watchOptions: {
ignored: ["node_modules", "backup", "package.json", "package-lock.json", ".eslintrc.js", ".gitignore"]
}
},
devServer: {
https: {
key: fs.readFileSync("./ssl/localhost.key"),
cert: fs.readFileSync("./ssl/localhost.crt"),
ca: fs.readFileSync("./ssl/ca.ssl.indexnl.com.crt")
},
port: 8080
},
pluginOptions: {
'style-resources-loader': {
preProcessor: 'stylus',
patterns: [
path.resolve(__dirname, './src/styles/variables.styl'),
path.resolve(__dirname, './src/styles/tomwork.functions.styl')
]
},
webpackBundleAnalyzer: {
openAnalyzer: false
}
},
pwa: {
name: 'FIFA maniaci',
iconPaths: [
{
'src': './img/icons/android-chrome-192x192.png',
'sizes': '192x192',
'type': 'image/png'
},
{
'src': './img/icons/android-chrome-512x512.png',
'sizes': '512x512',
'type': 'image/png'
}
],
backgroundColor: '#1e1e1e',
msTileColor: '#03a9f4',
themeColor: '#03a9f4'
}
};
//# sourceMappingURL=vue.config.js.map