How to use Sass on server

Asked

Viewed 231 times

-1

As a layman still in Sass, I have the doubt of how to use it in a provider as for example Locaweb or hostgator. They need to have Sass support or have another way?

  • You can do local editing with SASS and on the WEB you only upload the file. css, do not need to have the other files for the style to work and it will already be all unified in the file . css

1 answer

3


Guy any server you can host a file .sass or .scss or .less. But what will not happen is the hosting service compile their acquisitions to .css so that the browser can render it.

Browser itself cannot compile such files (.sass/.scss/.less) in a .css. What you can do is use some kind of WebPack (https://webpack.js.org/) or JetPack so that by the time you publish your site on the host it already Compile your .scss in .css before sending to FTP

inserir a descrição da imagem aqui

I’ve never heard of any hosting that Compile CSS...

  • 1

    Neither need webpack or similar, there are only compilers of Sass.

  • @bfavaretto yes of course, what I wanted to talk about is that it can already go all the way to the host already compiling and optimizing whatever you need. I don’t know if you only have a Sass compiler that already generates a package and sends it to the host in an automated way

Browser other questions tagged

You are not signed in. Login or sign up in order to post.