Code Monkey home page Code Monkey logo

gulpsass-compiler's Introduction

Compiler Sass to Minify CSS

To use these files, please, ensure that you had installed Node & NPM.

Automatic installation

First, save the file "gulpfile.js" and "package.json" in the project root folder. Then run on the terminal:

    npm install

This command will install all dependences in your project to run the Gulp file.

To install manualy the dependences, please run:

  • Creating a package.json file
    npm init
  • To install SASS (as global)
    npm install sass
  • To install Gulp (as global)
    npm install --global gulp
  • To install Gulp Sass (Dev enviroment)
    npm install -D gulp-sass
  • To install Gulp Clean CSS (Dev Enviroment)
    npm install -D gulp-clean-css

Dev Dependenses

The dev dependenses will just be used in development enviroment and will not be sended to production.

  • gulp-sass: used to compile Scss files to CSS
  • gulp-clean-css: used to minify the CSS files

Running in your project

With the dependenses intalled, you just need to run the follow command on the terminal:

    gulp

Modifing the file(s) folder(s)

This project acess the folder "./src/sass" and compile all the files with the extention ".scss", even inside other folder, and create the folder/file inside a folder called "css" outside the src folder.

If you want to change the path, you just need to change the path inside functions ".src" and "dest" on the task "compile" inside the file "gulpfile.js".

Enjoy!

gulpsass-compiler's People

Contributors

renato-dantas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.