GODcss

SCSS to shorthanded, minified, concatenated and only used CSS.

View the Project on GitHub bhadresharya/GODcss

GODcss

GODcss is a gulp program that automates your SCSS to CSS compilation.

Getting Started

Prerequisites

In order to use Gulp you need to have Node.js installed on your system.)

Installing

Clone this repo.

git clone https://github.com/bhadresharya/GODcss.git

Setting up

GODcss project has the following structure:

GODcss
├── css
│   ├── style.css
│   ├── style.css.map
│   └── style..min.css 
├── scss
│   └── style.scss
├── gulpfile.js
├── index.html
└── package.json

Now install the dependencies by running:

npm install

This creates node_modules directory with all the gulp plugins in the root of your project we specified in package.json.

gulp-plugin used

Evetything set up and now try to run gulp default command.

gulp

Usage

Now try making a change to the scss/style.scss and save it. It will be compiled to css in css/style.css file along with its source map.

Optimize

gulp optimize

The optimized CSS code will be minified and with the prefixes added (even if you forgot to use them in your scss code).

The optimized CSS code will be shorthanded and it will group the same media queries into one with their content code.

It will be compiled into css/style.min.css.

Author

Bhadresh Arya | twitter

License

This project is licensed under the MIT License - see the LICENSE.md file for details