Bring multiple separate files to one location.
metalsmith-congregate has not yet been tested with Metalsmith's CLI configuration
metalsmith-congregate is based off of metalsmith-assets, and thus uses similarly-named options.
var congregate = require('metalsmith-congregate');
metalsmith.use(congregate({
source: [ // an array of file paths relative to the working directory
"./node_modules/jquery/dist/jquery.js",
"./node_modules/bootstrap/dist/js/bootstrap.js"
],
destination: './assets' // relative to the build directory
}));
MIT