metalsmith-inject
v0.0.1
Published
Inject files into the metalsmith files pipeline
Downloads
2
Readme
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