How to deploy sass project into Netlify or Heroku? - css

I have created a sass project but I don't know how to deploy it before I deploy some other project into Heroku but in cases of sass I am so confused how to deploy it on production?
sass compiled at the end into CSS so could deploy directly HTML ,CSS and JavaScript part???
If we deploy sass into production so what will the build pack for sass?
I have no idea about it please help me for this.

The Sass file has to be compiled into a CSS file because browsers only recognize CSS for styling. If you're using VSCode, simply install the Sass compiler extension, click 'Watch Sass' and it will compile your Sass file into CSS every time there is a change made. Make sure to link the CSS file to the HTML file.

Related

Is there a need for .scss to .css in Vite?

Do I need to compile my .scss file to .css in my Vite project? Will it wont work if I just use the .scss extension
everything seems to work fine without the need to compile.
It is not necessary to compile .scss files to .css in a Vite project. Vite includes built-in support for Sass, so you can use the .scss extension in your project and Vite will automatically compile it to CSS for you. This means you do not need to use a separate tool to compile your Sass files, and you can use them directly in your project without any additional steps.

My browser somehow compliles .scss files from my React App without any .css file

I present you this scenario:
I have a React App.
I want to use node-sass
I install the package
I watched a youtube tutorial about sass integration with react.js
I followed the exact instructions (Rename all my .css file to .scss and change all the imports)
I wrote some scss and It's working just fine.
BUT I HAVE NO .CSS FILE TO COMPLILE MY .SCSS and it's working. So is this ok? I just rename all my files and start writing scss and it seems like the browser is compiling scss.
Am I doing something wrong?

Do i need to compile my SCSS files within my react.js project with the live SASS compiler? or does React.js this for me out of the box?

so i am quiet new to react.js and i was using Sass & scss in my php projects.
there i would compile with the VScode extention 'Live Sass Compiler'.
Now i am using React.js and i dont know if i sould compile the written Sass with the extention from vs code or if react.js does this for me. react is reading my scss even without compiling to css.
but i cant help thinking that its better to let the LIVE SASS COMPILER do its work becouse it is awesome at creating browser compatible css.
does react.js autocompile SCSS just like the Live SASS compiler?

Developing with Sass, keeping the compiled file out of git

I have a very large project with many contributors. A lot of whom don't work on the sass or front end.
Currently we have a deployment pipeline which will compile the sass and deploy it to a staging server. However I still have to compile the sass locally and commit compiled sass files into the repo otherwise the other developers won't see the changes. This creates the problem of the files constantly conflicting.
Ideally I would like to find a way to serve the sass files without having to compile sass every time. Any ideas?
Maybe in your server you can set up a sass watcher via console that detects the changes in the sass files and compiles them by itself once you upload them.
Here you can read more about it:
http://sass-lang.com/documentation/file.SASS_REFERENCE.html#using_sass
You can simply push your sass files to your repo and whoever wants to view the changes, compile the sass on his end.

Managing CSS in Sencha Touch

Is there a way to manage the CSS for a Sencha Touch app outside of the framework?
I'm used to working with CodeKit or Grunt to manage dependencies for websites, but with Sencha Touch everything seems to be done within the framework. I'm assuming that as long as everything gets compiled to the resources/css folder then it will be fine. But what about the framework resources? Do they get compiled to the same place or does the app make a separate request for them?
I have no idea of CodeKit or Grunt. Anyways in Sencha Touch all the CSS files get placed to the resources/css folder after the compilation. It's the same even when we add custom CSS files or use SASS with Compass compiler.
I use codekit too.
This is my solution: CodeKit -> Preferences -> (the left side bar) OTHER TOOLS -> Compass
Then select Use the compass executable at this path and choose the path you install compass

Resources