-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvue.config.js
More file actions
38 lines (32 loc) · 824 Bytes
/
vue.config.js
File metadata and controls
38 lines (32 loc) · 824 Bytes
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
// Ensure "" export behavior : "" === everything.
// It is needed because the project is a lib.
// cf: https://cli.vuejs.org/guide/build-targets.html#vue-vs-js-ts-entry-files
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { gitDescribeSync } = require("git-describe");
const gitInfos = gitDescribeSync();
process.env.VUE_APP_VERSION = gitInfos.raw ?? `v0.9.${gitInfos.hash}`;
module.exports = {
configureWebpack: {
output: {
libraryExport: ""
}
},
css: {
extract: false
},
pages: {
index: {
entry: "src/entry-point-app.ts"
}
},
transpileDependencies: ["vuetify"],
pluginOptions: {
i18n: {
locale: "en",
fallbackLocale: "en",
localeDir: "locales",
enableInSFC: true
}
},
publicPath: `${process.env.BASE_URL}/`
};