Skip to content
Permalink
Browse files

Introduce SASS processing for the modern CSS theme

* With this commit we are able to build our CSS files
  from SASS definitions.
* The facelift aka modern theme.css is now built from
  the SASS files below web/htdocs/themes/facelift/theme.scss.
* The whole build process is integrated in our webpack
  definition. The process includes automatic prefixing
  using autoprefixer and CSS cleaning using clean-css.

CMK-1567

Change-Id: I3a9da2204a74a5799d10094cf418677a95aa6655
  • Loading branch information
LarsMichelsen committed Feb 7, 2019
1 parent b0cecf0 commit a9fe31ca0fe39a757742f8a20c23e6b63118f8b9
@@ -177,7 +177,7 @@ endif
rm -rf check-mk-$(EDITION)-$(OMD_VERSION)

# This tar file is only used by "omd/packages/check_mk/Makefile"
$(DISTNAME).tar.gz: omd/packages/mk-livestatus/mk-livestatus-$(VERSION).tar.gz .werks/werks web/htdocs/js/main_min.js web/htdocs/js/mobile_min.js web/htdocs/js/side_min.js ChangeLog
$(DISTNAME).tar.gz: omd/packages/mk-livestatus/mk-livestatus-$(VERSION).tar.gz .werks/werks web/htdocs/js/main_min.js web/htdocs/js/mobile_min.js web/htdocs/js/side_min.js web/htdocs/themes/facelift/theme.css ChangeLog
@echo "Making $(DISTNAME)"
rm -rf $(DISTNAME)
mkdir -p $(DISTNAME)
@@ -317,6 +317,9 @@ node_modules: package.json
web/htdocs/js/%_min.js: node_modules webpack.config.js $(JAVASCRIPT_SOURCES)
node_modules/.bin/webpack --mode=development

web/htdocs/themes/%/theme.css: node_modules webpack.config.js postcss.config.js web/htdocs/themes/%/theme.scss web/htdocs/themes/%/scss/*.scss
node_modules/.bin/webpack --mode=development

# TODO(sp) The target below is not correct, we should not e.g. remove any stuff
# which is needed to run configure, this should live in a separate target. In
# fact, we should really clean up all this cleaning-chaos and finally follow the
@@ -328,6 +331,7 @@ clean:
omd/packages/mk-livestatus/mk-livestatus-*.tar.gz \
$(NAME)-*.tar.gz *~ counters autochecks \
precompiled cache web/htdocs/js/*_min.js \
web/htdocs/themes/*/theme.css \
.werks/werks \
ChangeLog

0 comments on commit a9fe31c

Please sign in to comment.
You can’t perform that action at this time.