mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-02 00:08:19 -04:00
Remove stamp.
This commit is contained in:
parent
ab622d5cd2
commit
2e8ae301c5
2 changed files with 1 additions and 4 deletions
4
ghu.js
4
ghu.js
|
@ -1,5 +1,4 @@
|
||||||
const {resolve, join} = require('path');
|
const {resolve, join} = require('path');
|
||||||
const dateformat = require('dateformat');
|
|
||||||
const {
|
const {
|
||||||
default: ghu,
|
default: ghu,
|
||||||
autoprefixer, cssmin, ife, includeit, jade, jszip,
|
autoprefixer, cssmin, ife, includeit, jade, jszip,
|
||||||
|
@ -24,8 +23,7 @@ ghu.before(runtime => {
|
||||||
if (hashes.length) {
|
if (hashes.length) {
|
||||||
const counter = ('000' + hashes.length).substr(-3);
|
const counter = ('000' + hashes.length).substr(-3);
|
||||||
const hash = hashes[0].substr(0, 7);
|
const hash = hashes[0].substr(0, 7);
|
||||||
const stamp = dateformat(Date.now(), 'yyyy-mm-dd-HH-MM-ss');
|
runtime.pkg.version += `+${counter}~${hash}`;
|
||||||
runtime.pkg.version += `+${counter}~${hash}~${stamp}`;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
"babel-core": "6.3.17",
|
"babel-core": "6.3.17",
|
||||||
"babel-eslint": "5.0.0-beta6",
|
"babel-eslint": "5.0.0-beta6",
|
||||||
"babel-preset-es2015": "6.3.13",
|
"babel-preset-es2015": "6.3.13",
|
||||||
"dateformat": "1.0.12",
|
|
||||||
"eslint": "1.10.3",
|
"eslint": "1.10.3",
|
||||||
"ghu": "0.2.2"
|
"ghu": "0.2.2"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue