mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-09 23:36:43 +02:00
Update deps.
This commit is contained in:
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);
|
||||
}
|
||||
}))
|
||||
|
Reference in New Issue
Block a user