work on updating to bs5

This commit is contained in:
Min RK
2022-06-08 13:51:23 +02:00
parent b05b3a30ab
commit 8c5715621a
8 changed files with 37 additions and 36 deletions

View File

@@ -146,21 +146,14 @@ class CSS(BaseCommand):
self.run_command('js')
print("Building css with less")
style_less = pjoin(static, 'less', 'style.less')
style_less = pjoin(static, 'scss', 'style.scss')
style_css = pjoin(static, 'css', 'style.min.css')
sourcemap = style_css + '.map'
args = [
'npm',
'run',
'lessc',
'--',
'--clean-css',
f'--source-map-basepath={static}',
f'--source-map={sourcemap}',
'--source-map-rootpath=../',
style_less,
style_css,
'css',
]
try:
check_call(args, cwd=here, shell=shell)