Rename global.js to pre.js.
This commit is contained in:
parent
2240bd3ca1
commit
2153056266
2 changed files with 2 additions and 2 deletions
4
ghu.js
4
ghu.js
|
@ -68,7 +68,7 @@ ghu.task('build:scripts', runtime => {
|
|||
return read(`${SRC}/_h5ai/public/js/scripts.js`)
|
||||
.then(newerThan(mapper, `${SRC}/_h5ai/public/js/**`))
|
||||
.then(webpack(webpackConfig, {showStats: false}))
|
||||
.then(wrap('\n\n// @include "global.js"\n\n'))
|
||||
.then(wrap('\n\n// @include "pre.js"\n\n'))
|
||||
.then(includeit())
|
||||
.then(ife(() => runtime.args.production, uglify()))
|
||||
.then(wrap(runtime.commentJs))
|
||||
|
@ -145,7 +145,7 @@ ghu.task('build:tests', ['build:styles'], 'build the test suite', () => {
|
|||
|
||||
read(`${TEST}: tests.js`)
|
||||
.then(webpack(webpackConfig, {showStats: false}))
|
||||
.then(wrap(`\n\n// @include "${SRC}/**/js/global.js"\n\n`))
|
||||
.then(wrap(`\n\n// @include "${SRC}/**/js/pre.js"\n\n`))
|
||||
.then(includeit())
|
||||
.then(write(mapfn.p(TEST, `${BUILD}/test`), {overwrite: true}))
|
||||
]).then(() => {
|
||||
|
|
Loading…
Add table
Reference in a new issue