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
3011e95e
Commit
3011e95e
authored
May 15, 2020
by
Dan Allen
Browse files
add comment for how to vendorize a library sourced from a node module
parent
f3e5cbb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
gulp.d/tasks/build.js
View file @
3011e95e
...
...
@@ -92,6 +92,8 @@ module.exports = (src, dest, preview) => () => {
)
.
pipe
(
buffer
())
.
pipe
(
uglify
()),
// NOTE use this statement to bundle a JavaScript library that cannot be browserified, like jQuery
//vfs.src(require.resolve('<package-name-or-require-path>'), opts).pipe(concat('js/vendor/<library-name>.js')),
vfs
.
src
(
'
css/site.css
'
,
{
...
opts
,
sourcemaps
})
.
pipe
(
postcss
((
file
)
=>
({
plugins
:
postcssPlugins
,
options
:
{
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