metalsmith-dev

Simple development helpers for Metalsmith

Metalsmith Dev

Simple development helpers for Metalsmith.

npm install metalsmith-dev
var dev = require("metalsmith-dev");

dev.watch(metalsmith);
dev.serve(metalsmith);

Watches the Metalsmith source folder for changes and rebuilds.

Arguments:

  • metalsmith: An instance of Metalsmith
  • paths: A string or array of strings to be watched along with the source folder.

Statically serves the Metalsmith destination folder.

Arguments:

  • metalsmith: An instance of Metalsmith
  • port: Port from which to serve site, defaults to 8080