Skip to content

Take files from subdirectories and consolidate them into one path and/or file.

License

Notifications You must be signed in to change notification settings

trychameleon/metalsmith-congregate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metalsmith-congregate

Bring multiple separate files to one location.

CLI Usage

metalsmith-congregate has not yet been tested with Metalsmith's CLI configuration

Javascript Usage

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
}));

License

MIT

About

Take files from subdirectories and consolidate them into one path and/or file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published