add build date

This commit is contained in:
Harvey committed 2021-11-30 11:56:47 +08:00
1 parent 05f4fc10dc
commit 52afc4a311
4 files changed
+13 -3

No files matched your search

+2 -1
View File
@@ -81,8 +81,9 @@ module.exports = function creatRollupConfig(projectPath) {
replace({
preventAssignment: true,
exclude: 'node_modules/**',
__ENV__: JSON.stringify(process.env.NODE_ENV || 'development'),
__ENV__: process.env.NODE_ENV || 'development',
__VERSION__: version,
__BUILD__: Date.now(),
}),
isProd && sizeSnapshot(),
isProd && removeHtmlSpace(),