Skip to content
This repository has been archived by the owner on Mar 6, 2019. It is now read-only.

DEPRECATED - Include static assets in your Metalsmith build

Notifications You must be signed in to change notification settings

treygriffith/metalsmith-assets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
    }
  }
}
  • source defaults to './public'
  • destination defaults 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

About

DEPRECATED - Include static assets in your Metalsmith build

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •