Skip to content

TommyScribble/postcss-gulpfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

postcss-gulpfile

A gulpfile.js using postCss. This gulpfile compiles sass like syntax to css, and then minifys for production. It also uses autoprefixer automatically add browser prefixes to all your css. Use two folders (initial & final are used currently but change these to whatever you use), one for work(initial) and one for prod(final).

Getting started

Download or clone the repo to your local machine.

Prerequisites

I use YARN to manage my dependancies but use which ever package manager you prefer to install the dependancies below. You will need: Gulp + gulp-postcss, gulp-sourcemaps, postcss-import, precss, autoprefixer, cssnano.

To install with YARN use the following

yarn add -D gulp gulp-postcss gulp-sourcemaps postcss-import precss autoprefixer cssnano

Install and run

Copy the gulpfile.js to the root of your project and update the 'initial' and 'final' folders with the folder names you are using. Run

gulp css

to compile your css.

About

My gulpfile.js using postCss

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published