Adding a sass compiler to Ref App

(Christine Nagadya) #1

Hello,

I am trying to add bootstrap 4 to the ref app. However, for customization, I need to use the source files not compiled css and js. The source files require additional tooling ie Sass compiler and Autoprefixer. How do I add the sass compiler?

cc: @ssmusoke

(Stephen Senkomago Musoke) #2

@nagadya To which module are you trying to add the SASS? Have you checked if this can be done in https://github.com/openmrs/openmrs-module-uicommons? You can generate them in there and use them in Ref App

(Ayeshmantha Perera) #3

@ssmusoke how’s it done in uicommons module am stuck in this point.

(Stephen Senkomago Musoke) #4

Start by adding the compiled Javascript and CSS files only - the SASS compiler can follow in another iteration

(Ayeshmantha Perera) #5

@ssmusoke Hm is it compiled with ruby ? Because cahnges on the scss files are not reflected for me after running mvn clean install with the pom file in sass folder in ui-commons