An rework plugin for Metalsmith.
npm install --save metalsmith-rework
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": "*"
}
}
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": {}
}
}
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())}
)}))
None yet