SCSS to shorthanded, minified, concatenated and only used CSS.
GODcss is a gulp program that automates your SCSS to CSS compilation.
In order to use Gulp you need to have Node.js installed on your system.)
Clone this repo.
git clone https://github.com/bhadresharya/GODcss.git
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
scss/style.scss
to css/style.css
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
.
Evetything set up and now try to run gulp default command.
gulp
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.
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
.
Bhadresh Arya | twitter
This project is licensed under the MIT License - see the LICENSE.md file for details