1. Install Node.js on your Computer
$ cd ~
$ sudo gem update --system
4. Check this website and install gulp and compass
$ sudo npm install gulp-watch gulp-compass path gulp-imagemin del --save-dev;
Go to your project, copy the Gulpfile to the base of project. Change the package name in the Gulpfile at line 2. Create a folder in the same folder of your folder css / images etc... Name this folder "images_dev"
Launch "$ gulp" commande on project folder.
When you save a .scss file, it compile css to the .css folder and a mapping in the same folder. Now, you can see in your browser inspection the exact line and the .scss file of the generated code.
If you want to add an image in your image folder: Drop your file into the 'images_dev' folder. Gulp compress image, drop the minified image in the real 'images' folder and clean automatically the 'images_dev' folder.
-
Gulp don't install properly, why ? -- Try to install Ruby Dev Kit.
-
Gulp stop compile when I save, why ? -- Try to Ctrl + C and rerun '$ gulp' command