Open navClose nav

Asset Pipeline

Hugo supports pre-processing CSS files via SCSS, and post-processing via PostCSS.

Hugo’s Built-in Asset Pipeline

Using Hugo’s asset pipeline, you can use Sass, SCSS, and PostCSS. You can also bundle and minify assets.

Hugo docs: Pipes

Best Practices for Gulp, Grunt, and Other Build Tools

In order to use external build like Gulp, Grunt, or Webpack with Forestry’s previewing, 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.

Last updated on July 24, 2017