I
I
igorstec2014-11-11 12:26:15
css
igorstec, 2014-11-11 12:26:15

How to work with SASS correctly?

Sorry for a number of very lamer questions!
I installed everything on my computer, sass works, but there are a number of questions:
less works simply, you connect files to html and everything works, then you upload it to the host and everything works too - that is, you don’t need to install anything. With SASS, it is more and more difficult to install programs on your computer and only then you work, but when you upload it to hosting, it does not work . and the question arose, was it right to upload less files to the hosting in the same way as SASS or is it a gross mistake and you need to upload compiled files? Or does the host need to be configured for SASS too? But then it turns out that when writing a project, I use SASS, but a year after the upload, I will already need to write in bare CSS&

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Vsk, 2014-11-11
@viktorvsk

To address such issues, there are concepts of the environment . Environment for development, use and testing (development, production, test).
In development, you work in a way that would be as convenient as possible (sass, loess, preprocessors ...)
In production - as efficiently as possible in terms of performance.
Therefore, it is necessary to correctly "switch" between environments. Naturally, in automatic mode.
In general, in this case, you need to work in SASS / LESS locally, and before deploying (uploading to the server), the files must be compiled into CSS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question