Commit 3011e95e authored by Dan Allen's avatar Dan Allen
Browse files

add comment for how to vendorize a library sourced from a node module

parent f3e5cbb3
......@@ -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 } }))),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment