Skip to content

dennisschaaf/metallsmith-rework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metalsmith-rework

An rework plugin for Metalsmith.

Installation

npm install --save metalsmith-rework

Getting Started

If you haven't checked out Metalsmith before, head over to their website and check out the documentation.

In order to use this plugin, you need to include the rework module in your package.json file:

{
  ...
  "dependencies": {
    ...
    "rework": "*"
  }
  
}

CLI Usage

If you are using the command-line version of Metalsmith, you can install via npm, and then add the metalsmith-rework key to your metalsmith.json file:

{
  "plugins": {
    "metalsmith-rework": {}
  }
}

JavaScript API

If you are using the JS Api for Metalsmith, then you can require the module and add it to your .use() directives:

var reworkPlugin = require('metalsmith-rework');

metalsmith.use(reworkPlugin({
    configure: (rework, filePath) => { 
      var directory =  path.dirname(filePath)
     
      return rework.use(reworkPlugin())}
    )}))

Options

None yet

About

metalsmith rework plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published