Basic sass compilation with python library libsass
Just a little script to compile scss to css file.
Links
Python side
Requirements
- Python 3.6 (because of f-strings)
- libsass python module
lib installation
On Linux system:
python -m venv venv
*. venv/bin/activate
pip install libsass
*you can skip virtualenv step if you are a dirty dev.
How to
This version of the script convert a file named main.scss to a file named main.css. main.scss have to be next to compile.py, main.css will be created at the same place, and overwritten each time compile.py is runned.
- create a valid scss file named main.scss
- run the script with
python compile.py