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.
Best Practices for Gulp, Grunt, and Other Build Tools
In order to use external build like Gulp, Grunt, or Webpack with Forestry’s instant preview, you should configure your project as follows:
- Use a Node.js-based tool installable via npm and configured in
package.json
. - Use our Hugo + Node.js environment.
- Define npm scripts in your
package.json
file to build and serve your site. - Use your npm serve script a your custom build command.
July 24, 2017
Caught a mistake or want to contribute to the docs? Edit this page on Github!