D
D
Dmitry Klimantovich2020-08-11 16:06:18
Sass
Dmitry Klimantovich, 2020-08-11 16:06:18

How to compile into multiple css files?

Good afternoon.
I'm currently building a Wordpress site on a local server using Sublime Text 3 which compiles css files to the directories I need. I also work on optimizing it. To speed up the rendering of the main spread of the site, some part of the css must be added to , as critical css. So I would like to make it so that I basically do style.scss and it would be compiled into a separate file from style.css. Can this be done? <head>
@import "critical.scss";

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SaNFeeD, 2020-08-11
@SaNFeeD

If this file is so important, then include it first. And I advise you to use the standard wordpress method
wp_enqueue_style()
You can read what this function does

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question