Note that cms.js will be used in two different places, in application.js (used by Scrivito's details views) and in frontend/all.js (used by the Spree/Solidus layout).
At this time, app/assets/javascripts/cms.js is really small, but this is the one place where all JavaScripts related to the Scrivito CMS should be put.
Require Scrivito JavaScript assets – step 3
-
Create a new file, app/assets/stylesheets/cms.css, and set its contents to:
/*
*= require scrivito
*= require_self
*/
-
Adjust app/assets/stylesheets/application.css:
Replace *= require scrivito
with *= require cms
.
Add *= require cms
to vendor/assets/stylesheets/spree/frontend/all.css
Analogously to the JavaScript, cms.css will be used in two different places, in application.css (used by Scrivito's details views) and in frontend/all.css (used by the Solidus/Spree layout).
The app/assets/stylesheets/cms.css file is very small, too, but this is where all styles related to the Scrivito CMS should be placed.