Welcome to the Treehouse Community
Looking to learn something new?
How do I add code to an existing Sass project so it adds to the end of the css file?
I am updating a site that has Sass. I understand watching a file but when I type the "sass --watch main.scss:main.css" it overwrites everything and starts it from scratch. How do I use an existing Sass file so it adds to the existing css file.
Ryan FieldCourses Plus Student 21,240 Points
Is main.scss the only file in the Sass folder? Usually Sass files are broken up into different folders and you just have to type
sass --watch scss:css in the directory's main folder. Sass compiles CSS in the order listed in the main
index file, so if you wanted to append new CSS to the end of it, you can create a new scss file in the Sass folder and then add the name of that file to the main
index.scss file and it should add the CSS from your newest file last.