webpack-auto-inject-version/src/config.js
2018-03-15 11:07:22 +00:00

27 lines
666 B
JavaScript

export default {
SHORT: 'AIV_SHORT',
SILENT: false,
PACKAGE_JSON_PATH: './package.json',
components: {
AutoIncreaseVersion: true,
InjectAsComment: true,
InjectByTag: true,
},
componentsOptions: {
AutoIncreaseVersion: {
runInWatchMode: false,
},
InjectAsComment: {
tag: 'Build version: {version} - {date}',
dateFormat: 'dddd, mmmm dS, yyyy, h:MM:ss TT',
},
InjectByTag: {
fileRegex: /\.+/,
AIVTagRegexp: /(\[AIV])(([a-zA-Z{} ,:;!()_@\-"'\\\/])+)(\[\/AIV])/g,
dateFormat: 'dddd, mmmm dS, yyyy, h:MM:ss TT',
},
},
LOGS_TEXT: {
AIS_START: 'Auto inject version started',
},
};