Skip to content

Commit

Permalink
add comment for how to vendorize a library sourced from a node module
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed May 15, 2020
1 parent f3e5cbb commit 3011e95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gulp.d/tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } }))),
Expand Down

0 comments on commit 3011e95

Please sign in to comment.