Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redacteur-doc-technique
old-antora-ui-default-fork
Commits
d81105ad
Commit
d81105ad
authored
Apr 29, 2020
by
Dan Allen
Browse files
don't attempt to set undefined contents on bundled file
parent
e9a20c49
Changes
1
Hide whitespace changes
Inline
Side-by-side
gulp.d/tasks/build.js
View file @
d81105ad
...
...
@@ -75,7 +75,7 @@ module.exports = (src, dest, preview) => () => {
Promise
.
all
(
mtimePromises
).
then
((
mtimes
)
=>
{
const
newestMtime
=
mtimes
.
reduce
((
max
,
curr
)
=>
(
!
max
||
curr
>
max
?
curr
:
max
))
if
(
newestMtime
>
file
.
stat
.
mtime
)
file
.
stat
.
mtimeMs
=
+
(
file
.
stat
.
mtime
=
newestMtime
)
file
.
contents
=
bundleBuffer
if
(
bundleBuffer
!==
undefined
)
file
.
contents
=
bundleBuffer
file
.
path
=
file
.
path
.
slice
(
0
,
file
.
path
.
length
-
10
)
+
'
.js
'
next
(
bundleError
,
file
)
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment