From 3011e95e4eb24efb6342d9f90617482f92edd8f7 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Fri, 15 May 2020 03:25:03 -0600 Subject: [PATCH] add comment for how to vendorize a library sourced from a node module --- gulp.d/tasks/build.js | 2 ++ 1 file changed, 2 insertions(+) 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 } }))), -- 2.11.0