Skip to content

Commit 56e7fe9

Browse files
authored
Merge pull request #307 from ByteInternet/feature/improve_scss_build
Feature/improve scss build
2 parents baf3014 + bde627f commit 56e7fe9

File tree

10 files changed

+14
-1930
lines changed

10 files changed

+14
-1930
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ open localhost and now you can make changes in style and refresh the page withou
4242

4343
when you're working on scss to compile it automatically run
4444
```
45-
sass --watch docs/_static/scss:docs/_static/css
45+
npx sass --watch docs/_static/scss:docs/_static/css
4646
```
4747

48-
or after changes compile scss once:
48+
or as a production build:
4949
```
50-
sass docs/_static/scss:docs/_static/css
50+
npx sass --style compressed --no-source-map docs/_static/scss:docs/_static/css
5151
```
5252

5353
## Deployment

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');

docs/_static/css/breakpoints.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/_static/css/colors.css

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)