forked from bootsie123/F1-Web-Viewer
-
Notifications
You must be signed in to change notification settings - Fork 6
/
vue.config.js
50 lines (48 loc) · 1.07 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
const info = require("./package.json");
process.env.VUE_APP_VERSION = info.version;
process.env.VUE_APP_HOMEPAGE = info.homepage;
module.exports = {
devServer: {
proxy: "http://localhost:" + (process.env.SERVER_PORT || 3000)
},
outputDir: "./dist/web",
pages: {
index: {
entry: "./src/main.js",
title: "F1 Web Viewer"
}
},
css: {
loaderOptions: {
scss: {
prependData: "@import '@/assets/main.scss';"
}
}
},
pluginOptions: {
electronBuilder: {
outputDir: "./dist/electron",
nodeIntegration: true,
builderOptions: {
appId: "app.netlify.f1webviewer",
productName: "F1 Web Viewer",
publish: ["github"],
win: {
target: ["nsis"]
},
mac: {
category: "public.app-category.sports",
target: ["dmg"]
},
linux: {
category: "AudioVideo",
target: ["AppImage"]
},
directories: {
buildResources: "build"
}
}
}
},
transpileDependencies: ["vue-grid-layout"]
};