import { PrettyConsoleWebpackPlugin } from '@sprit/pretty-console-webpack-plugin';
new PrettyConsoleWebpackPlugin({
git: {
branch: true,
hash: 7,
lastCommitDateTime: true
},
custom() {
return {
'构建版本': process.env.BUILD_VERSION // 环境变量
};
}
})