Website/node_modules/metalsmith-assets
2015-12-03 15:24:36 -05:00
..
node_modules improving the design 2015-12-03 15:24:36 -05:00
test improving the design 2015-12-03 15:24:36 -05:00
.npmignore improving the design 2015-12-03 15:24:36 -05:00
index.js improving the design 2015-12-03 15:24:36 -05:00
Makefile improving the design 2015-12-03 15:24:36 -05:00
package.json improving the design 2015-12-03 15:24:36 -05:00
README.md improving the design 2015-12-03 15:24:36 -05:00

metalsmith-assets

Include static assets in your Metalsmith build

Installation

$ npm install metalsmith-assets

CLI Usage

Install via npm and then add the metalsmith-assets key to your metalsmith.json plugins with a source and destination directory, like so:

{
  "plugins": {
    "metalsmith-assets": {
      "source": "./assets",
      "destination": "./assets"
    }
  }
}

Javascript Usage

Pass options to the assets plugin and pass it to Metalsmith with the use method:

var assets = require('metalsmith-assets');

metalsmith.use(assets({
  source: './assets', // relative to the working directory
  destination: './assets' // relative to the build directory
}));

License

MIT