metalsmith-assets
Advanced tools
Weekly downloads
Readme
Include static assets in your Metalsmith build
$ npm install metalsmith-assets
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"
}
}
}
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
}));
MIT
FAQs
Include static assets in your Metalsmith build
The npm package metalsmith-assets receives a total of 832 weekly downloads. As such, metalsmith-assets popularity was classified as not popular.
We found that metalsmith-assets demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.