Open navClose nav

Asset Pipeline

If you’re planning on using any preprocessing on your assets (images, CSS, or JS) you’ll need to be careful how you implement this as it effects how Forestry builds your sites.

SASS

Jekyll supports .sass and .scss processing out of the box. It requires special configuration, so please see Jekyll’s docs on asset processing in the resources below.

CoffeeScript

Jekyll also supports preprocessing CoffeeScript with an officially support gem. It requires special configuration, so please see Jekyll’s docs on asset processing in the resources below.

Best Practises for Gulp, Grunt, and Other Build Tools

In order to use external build like Gulp, Grunt, or Webpack with Forestry’s previewing and deployment, you should configure them as follows:

  1. Use a NodeJS-based tool installable via NPM and configured in package.json.
  2. Define the build script(s) as NPM scripts in your package.json file.
  3. Use custom build commands to call these NPM scripts.

Further Reading


Last updated on July 24, 2017