3.0.25 • Published 4 years ago
@dnb-hugo/postcss-config v3.0.25
Usage
Create postcss.config.js with the following content:
const config = require("@dnb-hugo/postcss-config");
module.exports = config;Hugo Notes
Hugo is weird, but great. To get PostCSS to work with Hugo the postcss-cli packages needs to be installed in the
repo itself and is not handed through this configuration. Run the following to get PostCSS going on Hugo:
npm install -D postcss-cliA global postcss-cli installation won't work if the plugins in this package are not installed globally as well.
It's a all-or-nothing situation.