Skip to content

A simple script to compile SASS to CSS automatically with pure PHP.

License

Notifications You must be signed in to change notification settings

pinceladasdaweb/PHASS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHASS

A simple script to compile SASS to CSS automatically with pure PHP using the scssphp compiler written by Leaf Corcoran.

How to install

You can download the repository files and installs the dependencies with the composer:

$ composer install

How to use

Open the example folder and see an example of use:

Phass::watch("scss/", "css/");

The first parameter is the relative path to your scss folder and the second parameter is the relative path to your css folder.

Tip

To perform automatic compilation of css files in the terminal run the following command:

# Linux
$ watch -n 1 php watch.php

Read more about watch command.

# MacOS
$ while true; do php watch.php; sleep 1; done

About

A simple script to compile SASS to CSS automatically with pure PHP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published