2.0.0 • Published 7 years ago
metalsmith-assets-2 v2.0.0
metalsmith-assets
Include static assets in your Metalsmith build
Installation
$ npm install metalsmith-assetsCLI 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"
}
}
}sourcedefaults to'./public'destinationdefaults to'.'
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
2.0.0
7 years ago