From: Dan Allen Date: Fri, 15 May 2020 09:25:03 +0000 (-0600) Subject: add comment for how to vendorize a library sourced from a node module X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3011e95e4eb24efb6342d9f90617482f92edd8f7;p=working%2Feg-antora.git add comment for how to vendorize a library sourced from a node module --- diff --git a/gulp.d/tasks/build.js b/gulp.d/tasks/build.js index 5894cc1..d6ff379 100644 --- a/gulp.d/tasks/build.js +++ b/gulp.d/tasks/build.js @@ -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(''), opts).pipe(concat('js/vendor/.js')), vfs .src('css/site.css', { ...opts, sourcemaps }) .pipe(postcss((file) => ({ plugins: postcssPlugins, options: { file } }))),