website/vue.config.js

39 lines
1.1 KiB
JavaScript
Raw Normal View History

2022-02-05 21:17:10 +11:00
const WebpackAutoInject = require("webpack-auto-inject-version")
2022-02-05 14:39:37 +11:00
module.exports = {
2022-02-05 21:17:10 +11:00
transpileDependencies: ["vuetify"],
productionSourceMap: false,
configureWebpack: {
plugins: [
new WebpackAutoInject({
SHORT: "Versioning",
SILENT: false,
PACKAGE_JSON_PATH: "./package.json",
PACKAGE_JSON_INDENT: 2,
components: {
AutoIncreaseVersion: true,
InjectAsComment: true,
InjectByTag: true
},
componentsOptions: {
AutoIncreaseVersion: {
runInWatchMode: true
},
InjectAsComment: {
tag: "Version information: {version}, Build Date: {date}",
dateFormat: "dd/mm/yyyy; hh:MM:ss TT",
multiLineCommentType: false
},
InjectByTag: {
fileRegex: /\.+/,
AIVTagRegexp: /(\[AIV])(([a-zA-Z{} ,:;!()_@\-"'\\\/])+)(\[\/AIV])/g,
dateFormat: "dd/mm/yyyy; hh:MM:ss TT"
}
},
LOGS_TEXT: {
AIS_START: "AIV started"
}
})
]
2022-02-05 21:28:05 +11:00
}
2022-02-05 14:39:37 +11:00
}