mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-23 03:27:08 -04:00
Update deps.
This commit is contained in:
parent
44e53ab213
commit
c521ecd055
5 changed files with 6606 additions and 14 deletions
4
ghu.js
4
ghu.js
|
@ -18,7 +18,7 @@ const webpackCfg = include => ({
|
|||
loader: 'babel-loader',
|
||||
query: {
|
||||
cacheDirectory: true,
|
||||
presets: ['es2015']
|
||||
presets: ['babel-preset-env']
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -108,7 +108,7 @@ ghu.task('build:copy', runtime => {
|
|||
read(`${SRC}: **, ! **/*.js, ! **/*.less, ! **/*.pug, ! **/conf/*.json`)
|
||||
.then(newerThan(mapper))
|
||||
.then(each(obj => {
|
||||
if (/index\.php$/.test(obj.source)) {
|
||||
if ((/index\.php$/).test(obj.source)) {
|
||||
obj.content = obj.content.replace('{{VERSION}}', runtime.pkg.version);
|
||||
}
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue