google / docsy

A set of Hugo doc templates for launching open source content.
https://docsy.dev
Apache License 2.0
2.61k stars 899 forks source link

Hugo-module "Setup a site from scratch" instructions are missing steps #1718

Open chalin opened 12 months ago

chalin commented 12 months ago

Both the TL;DR and the "Detailed steps" need to mention Install PostCSS.

a-h commented 1 month ago

And to create postcss.config.js as per step 3 of https://gohugo.io/hugo-pipes/postcss/

module.exports = {
  plugins: [
    require('autoprefixer')
  ]
};

If you don't want error:

Error: error building site: POSTCSS: failed to transform "/scss/main.css" (text/css): Error: Loading PostCSS Plugin failed: Cannot find module 'autoprefixer'