0.0.1 • Published 8 years ago

metalsmith-inject v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

metalsmith-inject

Inject files into the metalsmith files pipeline

Work in progress

Usage

import Metalsmith from 'metalsmith';
import inject from 'metalsmith-inject';

Metalsmith(__dirname)
  .source('src')
  .destination('dest')
  .use(inject({
    paths: [
      'css',        // Injects __dirname/css
      'javascript', // Injects __dirname/javascript
      'images'      // Injects __dirname/images
    ]
  }))
  .use(...)
  .build((err, files) => {
    // Files from __dirname/{src,css,javascript,images} will all be available
    // and processed through the metalsmith pipeline
  });

License

Copyright © 2015 Nicholas Hwang - MIT License