/postcss-template

first postcss setup attempt

Primary LanguageJavaScript

Postcss plugins used

  • postcss-import
  • postcss-cssnext
  • cssnano

Postcss-cli workflow

Make sure postcss-cli installed globally

npm install postcss-cli -g

Then install dependencies

npm install --production

Npm scripts available:

Compiling with cssnano

npm run postcss

Watching files without cssnano:

npm run postcss-watch

Gulp workflow

Install dependencies

npm install

Gulp commands available:

gulp
gulp watch

References

From Sass to PostCSS by Taler Gaw
PostCSS Quickstart Guide: Gulp Setup by Kezz Bracey