volto: less modules not working on Volto 17
I have an addon that uses less
modules. In Volto
16, the CSS is generated normally. In Volto
17, in production mode, the less
CSS is not added to the bundle. The strange thing is that in development mode everything works ok. Does anyone have any idea what might be going on? I also tried CSS modules and SCSS modules and had the same problem.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 27 (27 by maintainers)
@tiberiuichim I did PR #5165 , changing the code as you suggested.
@davisagli @tiberiuichim I created this repository to demonstrate the problem.
I customized the
View.jsx
to insert these components:https://github.com/wesleybl/cssmodules.volto/blob/main/src/components/CssModules/CssModules.jsx
It uses a simple CSS modules here:
https://github.com/wesleybl/cssmodules.volto/blob/main/src/components/CssModules/CssModules.jsx#L4
This will make the text
This text should be red
appear on the screen.if you use the command:
the text does not turn red.
Any tip is welcome.