Recompile sass on dev dashboard

I’m working on customizing the dashboard, and would like to add another scss file in /ondemand/dev/dashboard/app/assets/stylesheets. I have already successfully added one file but I can’t get it to recompile to pick up my changes. I’ve tried restarting the dashboard, running bundle install from the command line and from the sandbox dev interface.

Is my only option a separate custom.css file?

Appreciate any help!

Hi and welcome! Sorry for the delay in response.

When you add a stylesheet - I believe you also need to import it it in application.scss with something like @import "my_new_file"; or similar. Then you can run bin/recompile_js or bin/setup to recompile. This is what I assume you’re missing.

After recompiling - since it’s the development version, it should just pick up the new files without any restarts.

1 Like