Commit 61fc192c authored by shadMod's avatar shadMod 💬

replaced libsass with pyScss (1.4.0)

parent 0403b99f
......@@ -16,10 +16,11 @@
import os
import sass
import click
import uitwww
from uitwww import utils
from scss.compiler import compile_file
@click.group()
......@@ -89,7 +90,7 @@ def init(data):
def build_scss():
"""Compile the scss file"""
print("Compile the scss file")
base_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")
path = f"{base_dir}/assets/scss/www.scss"
with open(f"{base_dir}/uitwww/static/website.css", "w") as fn:
fn.write(sass.compile(filename=path))
BASE_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")
path = f"{BASE_DIR}/assets/scss/www.scss"
with open(f"{BASE_DIR}/uitwww/static/website.css", "w") as fn:
fn.write(compile_file(path))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment