mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
add date and hash in build
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
||||
import { version } from "./package.json";
|
||||
import git from "git-rev-sync";
|
||||
|
||||
// rollup.config.js
|
||||
export default {
|
||||
@@ -8,6 +9,6 @@ export default {
|
||||
format: "iife",
|
||||
name: "odoo",
|
||||
extend: true,
|
||||
outro: `exports.core.version = '${version}';`
|
||||
outro: `exports.core._version = '${version}';\nexports.core._date = '${new Date().toISOString()}';\nexports.core._hash = '${git.short()}';`
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user