Yes there is. You need to have two manifest files. I would call public application.css
and private admin.css
as this is a general Rails convention.
application.css
should contain all the public CSS files, and you will need to remove the require_tree directive, as this is what includes what you don't want.
The second admin.css
manifest admin.css
will contain what you want for the private party.
You can then reference these files in layouts using the Rails helpers.
You will need to add admin.css (and .js, if any) to the precompilation array for this to work correctly during production:
config.assets.precompile + = ['admin.js', 'admin.css']
source share