Answer the question
In order to leave comments, you need to log in
How to convert css to scss?
Hello!
There is an scss file that has been compiled into a css file. Then, as far as I understood, changes were manually made to the css file itself. Now it turns out that it is impossible to edit the scss file, because does it just overwrite the css file that has been manually modified? Is there any way to get styles that have been manually added to css so that they can then be transferred to scss?
Answer the question
In order to leave comments, you need to log in
As SCSS is usually written, in principle, it is enough to transfer the CSS code to the source code and, where necessary, replace it with variables. If it is difficult to find in the source code what exactly has changed, change the approach to development, i.e. divide into blocks.
If there is a sourcemap, then this will help to figure it out.
And yes, as they wrote in the comments, copy the final file that was modified, run the collector and see the difference. Sometimes a cursory glance in two tabs of the editor may be enough (if the code blocks have not walked up and down). Well, either diff, or compare in PR, if the code base is stored in the repositories.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question