How to compile .scss files ito .css file?
Question
Newbie here. I have a stylesheet, main.css, that is linked to in my website, that looks like this:
@import "modules/reset.scss";
@import "modules/base.scss";
@import "modules/header.scss";
@import "modules/footer.scss";
@import "modules/blocks.scss";
I’ve been messing around with the header.scss and the changes I’m making are showing up. But the variables that are listed in base.scss aren’t showing up – these are mostly my colors and such. I’ve never worked with .scss files, but it seems from my research that you have to compile them into .css files? How do you do that?
I do have
wp_enqueue_style( 'mwp-css', get_stylesheet_directory_uri() . '/css/maincompiled.css', array('mwp-fonts'), null);
in my functions.php file
0
2 months
0 Answers
8 views
0
Leave an answer
You must login or register to add a new answer .