user image

Mohamed Aboelfotoh
Published in : 2022-02-11

Do I have to upload the sass files or just the CSS file?

HTML & CSS

I understand that all the SASS files that I code in a project are compiled into one main CSS file.

I want to know do I need to upload all the files to the project folder in the host, or just the main CSS file?

And If I will upload the CSS file, Do I still need to keep the 2 highlighted lines in the package.json?

 

Comments

Great Coder Date : 2022-02-12

Best answers

1

Best answers

1

The HTML files will make reference to the CSS file not the SCSS or SASS files. So that's the one, the CSS file I mean, you'll need to put on your hosting.

There's no need to submit any sass files to the server if you're not going to do the compilation on it. And in this case you won't need the script nor the sass dependency lines in the package.json file.

But if you are making a big project with a lot of dependencies you better keep make all the compilation as a one step on the server.

Leave a comment

Join us

Join our community and get the chance to solve your code issues & share your opinion with us

Sign up Now

Related posts

Is OOCSS still a good CSS architecture in 2022?
Publish date: 2022-02-08 | Comments: 2

Tag: HTML & CSS

Searching for a better way to use abstracts in Dart SASS
Publish date: 2022-02-10 | Comments: 0

Tag: HTML & CSS

Can't move the background-image code from CSS file to HTML file.
Publish date: 2022-02-13 | Comments: 2

Tag: HTML & CSS

Multiple classes in :not() function in CSS
Publish date: 2022-07-25 | Comments: 2

Tag: HTML & CSS

How can I add engraved style to my buttons using CSS?
Publish date: 2022-03-01 | Comments: 5

Tag: HTML & CSS

How to separate the background into three divs that can be flipped?
Publish date: 2022-02-12 | Comments: 1

Tag: HTML & CSS

How to align an Textarea in the middle of the webpage
Publish date: 2022-02-27 | Comments: 1

Tag: HTML & CSS

How to horizontally align to the centre a li inside an ul?
Publish date: 2022-03-04 | Comments: 2

Tag: HTML & CSS