plone / bobtemplates.plone

Python Code Templates for Plone Projects with mr.bob
https://pypi.org/project/bobtemplates.plone/
GNU General Public License v2.0
24 stars 31 forks source link

How to create theme-compiled.css #444

Open NicolasGoeddel opened 3 years ago

NicolasGoeddel commented 3 years ago

Hi there,

I create a new theme within my addon using bobtemplates.plone. After correcting @barceloneta_path and enabling the developer mode in http://localhost:8080/Plone3/@@resourceregistry-controlpanel the theme is finally visible. Now I want to create the file theme-compiled.css so I can disable development mode again. How can I do that? I added already the plone-compile-resources to my develop.cfg:

parts +=
    resources
[resources]
recipe = zc.recipe.egg
eggs =
    plone.staticresources
scripts = plone-compile-resources

and tried compiling the resources but it seems not to find the theme. Do I have to create a bundle manually in profiles/default/registry.xml to make it work? If yes, what do I need to add there exactly?

I also tried compiling CSS in the tools menu of the @@theming-controlpanel-mapper. But this seems to be "Working..." endlessly. Also there is no information anywhere visible in the backend. I usually start my client in the foreground (client1 fg).

Any advice on how to compile the theme for production use? Thank you!

MrTango commented 3 years ago

Hi @NicolasGoeddel, which template di you use and which version of plonecli/bobtemplates.plone do you have?