Description
Steps to reproduce:
- Do to XWiki.DefaultSkin (edit)
- Add a new overriding template called "less/custom.less"
- Add some content in it
- Open the URL http://localhost:8080/xwiki/bin/skin/skins/flamingo/less/style.less.vm?colorTheme=no
- You get the content of style.less.vm
- Open the URL http://localhost:8080/xwiki/bin/skin/skins/flamingo/less/custom.less -> 404
The Skin Action only supports the old Skin mechanism (where you had to modify the XWiki.XWikiSkins class) or the file system resources, but not the Overridded templates.
Because of that, if you add a LESS resource in the skin and you try to import it via the @import command on the @lessCode field of a Flamingo Theme, the live preview of that theme is broken, because it needs to access the resource via the Skin Action (because the LESS code is compiled on the browser).
Attachments
Issue Links
- is related to
-
XWIKI-13152 Provide a non-deprecated way to override "style.css" using the Skin Application
- Open