-
Notifications
You must be signed in to change notification settings - Fork 7
/
vue.config.js
42 lines (40 loc) · 1.11 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const webpack = require("webpack");
// eslint-disable-next-line @typescript-eslint/no-var-requires
const fs = require("fs");
const packageJson = fs.readFileSync("./package.json");
const version = JSON.parse(packageJson).version || 0;
module.exports = {
transpileDependencies: ["vuetify", "vuex-module-decorators"],
configureWebpack: {
target: "electron-renderer",
plugins: [
new webpack.DefinePlugin({
"process.env": {
PACKAGE_VERSION: '"' + version + '"'
}
})
]
},
pluginOptions: {
electronBuilder: {
builderOptions: {
appId: "com.clarivate.wos-excel-converter",
productName: "Web of Science™ API Exporter",
copyright: "Copyright © 2021 Clarivate Analytics",
publish: ["github"],
linux: {
target: ["AppImage", "tar.gz"]
}
},
externals: ["exceljs", "fast-csv", "fs"],
nodeIntegration: true
},
i18n: {
locale: "en",
fallbackLocale: "en",
localeDir: "locales",
enableInSFC: false
}
}
};