SCSS & Gulp.js
Using SCSS and Gulp together can greatly improve the efficiency, organization, and scalability of your front-end web development projects. By using SCSS to write more maintainable and scalable stylesheets and Gulp to automate repetitive tasks, you can save time and effort while ensuring consistency and scalability in your development workflow.
How to Use
- 1
Using SCSS
The Main File for SCSS is the
/style.scssFile. The SCSS Components can be found in thesass/Folder.You can customize SCSS using the
sass/bootstrap/variables.scss(Bootstrap Variables) and thesass/variables.scss(Canvas Variables). - 2
Using Gulp.js
If you plan on using Gulp.js, first make Sure that your System already has NodeJS, NPM and Gulp installed.
After you have the above installed, use the Terminal (we recommend VS Code),
cd /to/project/folderto go to your Project Folder and then use thenpm installCommand to install the Dependencies from thepackage.json.Some of the Gulp Commands included are:
gulp watchThis will compile the/style.scssto/style.cssand run BrowserSync.gulp imageminifyThis will compress all the Images and save them in the/distFolder.gulp cssminifyThis will minify the CSS Files and save them in the/distFolder.gulp jsminifyThis will minify the JS Files and save them in the/distFolder.gulp minifyThis will minify both JS and CSS Files and save them in the/distFolder.
