-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvue.config.js
36 lines (34 loc) · 853 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
const webpack = require("webpack");
const crypto = require("crypto");
/**
* md4 algorithm is not available anymore in NodeJS 17+ (because of lib SSL 3).
* In that case, silently replace md4 by md5 algorithm.
*/
try {
crypto.createHash("md4");
} catch (e) {
console.warn('Crypto "md4" is not supported anymore by this Node version');
const origCreateHash = crypto.createHash;
crypto.createHash = (alg, opts) => {
return origCreateHash(alg === "md4" ? "md5" : alg, opts);
};
}
module.exports = {
chainWebpack: (config) => {
config.plugins.delete("pwa");
config.plugins.delete("workbox");
},
configureWebpack: {
plugins: [
new webpack.ProvidePlugin({
mapboxgl: "mapbox-gl",
}),
],
},
transpileDependencies: ["vuetify"],
pwa: {
workboxOptions: {
skipWaiting: true,
},
},
};