@escio/metalsmith-set-extension
v1.0.2
Published
Metalsmith plugin setting the extension of processed files.
Downloads
4
Readme
@escio/metalsmith-set-extension
Metalsmith plugin setting the extension of processed files
Installation
$ npm install @escio/metalsmith-set-extension
Usage
The plugin has a single parameter, the extension you wish to set on the processed files. The existing extension is overwritten.
var metalsmith = require('metalsmith')
var setExtension = require('@escio/metalsmith-set-extension')
metalsmith(
__dirname
).use(
// Set the extension of all processed files to .html
setExtension('.html')
).build((err) => {
if (err) {
throw err;
}
});
License
ISC © Escio AS