Skip to content

Commit

Permalink
upgrade: add sass instead of node-sass (PalisadoesFoundation#1665)
Browse files Browse the repository at this point in the history
* upgrade: add sass instead of node-sass

* update CODE_STYLE.md

* update CODE_STYLE.md

* update documentation for app.css.map file
  • Loading branch information
NamitBhutani authored Mar 9, 2024
1 parent e04abf3 commit 52fefa1
Show file tree
Hide file tree
Showing 5 changed files with 975 additions and 608 deletions.
12 changes: 9 additions & 3 deletions CODE_STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,17 @@ The compiled CSS file is `src/assets/css/app.css` and it is imported into `src/i
To compile the Sass file once, run the following command in the terminal

```
node-sass src/assets/scss/app.scss src/assets/css/app.css
npx sass src/assets/scss/app.scss src/assets/css/app.css
```

To watch the Sass file for changes and compile it automatically, run the following command in the terminal

```
node-sass src/assets/scss/app.scss src/assets/css/app.css --watch
```
npx sass src/assets/scss/app.scss src/assets/css/app.css --watch
```
The `src/assets/css/app.css.map` file associates the generated CSS code with the original SCSS code. It allows you to see your SCSS code in the browser's developer tools for debugging.

To skip generating the map file, run
```
npx sass --no-source-map src/assets/scss/app.scss src/assets/css/app.css
```
Loading

0 comments on commit 52fefa1

Please sign in to comment.