forked from louvorja/louvorja
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
51 lines (49 loc) · 1.26 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
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);
};
}
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
pluginOptions: {
electronBuilder: {
builderOptions: {
appId: 'LouvorJA',
//Add also your database location
//extraResources: ['src/res/'],
//win: {
// icon: "build/CYaPass512.png"
//},
extraFiles: [
{
from: "public",
to: "public",
filter: ["**/*"]
},
{
from: "src/assets/fonts",
to: "fonts",
filter: ["**/*"]
},
{
from: "src/assets/imgs",
to: "imgs",
filter: ["**/*"]
}
]
},
//This line: add knex and sqlite3
externals: ['knex', 'sqlite3'],
}
}
})