pepperz Posted January 27 Share Posted January 27 (edited) I have created a child theme (parent: classic theme) but I don't understand what to do about assets and wepack compiling. I'd like to use scss files and compile them to css. Do I have to copy classic/_dev directory to my child theme? Create a _dev directory in my theme and keep only overrides there? Is there any guide about this? parent: classic name: mytheme display_name: Mytheme version: 1.0.0 assets: use_parent_assets: true css: all: - id: custom-styles path: assets/css/custom.css Edited January 27 by pepperz (see edit history) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted January 27 Share Posted January 27 The _dev is used when you compile the theme. It makes no sense for a child one. Link to comment Share on other sites More sharing options...
pepperz Posted January 28 Author Share Posted January 28 On 1/27/2025 at 6:40 PM, Prestashop Addict said: The _dev is used when you compile the theme. It makes no sense for a child one. Expand So is it impossible to use scss in a child theme? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted January 28 Share Posted January 28 A child theme normally uses parent style, and add or override css in its custom.css Link to comment Share on other sites More sharing options...
pepperz Posted January 29 Author Share Posted January 29 I don't understand why presta would support sass only in parent themes. How is that supposed to help developers? I thought that there would be a way to use sass files in a child theme and be able to compile it. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted January 29 Share Posted January 29 On 1/29/2025 at 8:17 AM, pepperz said: I don't understand why presta would support sass only in parent themes. How is that supposed to help developers? I thought that there would be a way to use sass files in a child theme and be able to compile it. Expand It's not an obligation, but you said you use use_parent_assets: true in your child theme config. You can set to false and create your own assets with _dev and use webpack and npm see doc. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now