Skip to content

Commit edd5b99

Browse files
author
Jonathan Visser
committed
Build stylesheet on buildtime
1 parent 7708c19 commit edd5b99

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

deploy.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
run('ln -sf docs/_build/html pub');
4848
});
4949

50+
task('node:build:scss', static function() {
51+
run('npx sass --style compressed --no-source-map docs/_static/scss:docs/_static/css');
52+
});
53+
5054
# HMV configuration for when this is running in a docker
5155
task('deploy:hmv_docker', static function () use (&$DOCKER_HOST, &$DOCKER_WEBROOT) {
5256
if (test('[ -f /etc/hypernode/is_docker ]')) {
@@ -71,6 +75,7 @@
7175
});
7276

7377
$configuration = new Configuration();
78+
$configuration->addBuildTask('node:build:scss');
7479
$configuration->addBuildTask('python:venv:create');
7580
$configuration->addBuildTask('python:venv:requirements');
7681
$configuration->addBuildTask('python:build_documentation');

0 commit comments

Comments
 (0)