Skip to content

Commit

Permalink
CMA CSS: Configs to generate a facelift css file for the virtual appl…
Browse files Browse the repository at this point in the history
…iance

Change-Id: I49f35619395950034b5f3bbc4462f6c4c718fd81
  • Loading branch information
oKenneth committed Nov 7, 2019
1 parent 323f40a commit cc52984
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Expand Up @@ -344,6 +344,12 @@ web/htdocs/js/%_min.js: node_modules webpack.config.js $(JAVASCRIPT_SOURCES)
web/htdocs/themes/%/theme.css: node_modules webpack.config.js postcss.config.js web/htdocs/themes/%/theme.scss web/htdocs/themes/%/scss/*.scss
WEBPACK_MODE=$(WEBPACK_MODE) ENTERPRISE=$(ENTERPRISE) MANAGED=$(MANAGED) node_modules/.bin/webpack --mode=$(WEBPACK_MODE:quick=development)

# This target is used to generate a css file for the virtual appliance. It is
# called from the cma git's Makefile and the respective scss and css files are
# kept under ~/git/cma/skel/usr/share/cma/webconf/htdocs/
web/htdocs/themes/facelift/cma_facelift.css: node_modules webpack.config.js postcss.config.js web/htdocs/themes/facelift/cma_facelift.scss web/htdocs/themes/facelift/scss/*.scss
WEBPACK_MODE=$(WEBPACK_MODE) ENTERPRISE=$(ENTERPRISE) MANAGED=$(MANAGED) node_modules/.bin/webpack --mode=$(WEBPACK_MODE:quick=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
Expand Down
2 changes: 2 additions & 0 deletions web/htdocs/themes/facelift/.gitignore
@@ -1 +1,3 @@
theme.css
cma_facelift.css
cma_facelift.scss
1 change: 1 addition & 0 deletions webpack.config.js
Expand Up @@ -11,6 +11,7 @@ module.exports = {
side: "./web/htdocs/js/side_index.js",
themes: [
"./web/htdocs/themes/facelift/theme.scss",
"./web/htdocs/themes/facelift/cma_facelift.scss",
"./web/htdocs/themes/classic/theme.scss",
"./web/htdocs/themes/modern-dark/theme.scss",
],
Expand Down

0 comments on commit cc52984

Please sign in to comment.