tldr/pages/common/sass.md

21 lines
668 B
Markdown
Raw Normal View History

# sass
2016-01-04 18:29:19 +00:00
> Convert SCSS or Sass files to CSS.
> More information: <https://sass-lang.com/documentation/cli/dart-sass>.
2016-01-04 18:29:19 +00:00
- Convert a SCSS or Sass file to CSS and print out the result:
2016-01-04 18:29:19 +00:00
`sass {{inputfile.scss|inputfile.sass}}`
2016-01-04 18:29:19 +00:00
- Convert a SCSS or Sass file to CSS and save the result to a file:
2016-01-04 18:29:19 +00:00
`sass {{inputfile.scss|inputfile.sass}} {{outputfile.css}}`
- Watch a SCSS or Sass file for changes and output or update the CSS file with same filename:
`sass --watch {{inputfile.scss|inputfile.sass}}`
- Watch a SCSS or Sass file for changes and output or update the CSS file with the given filename:
`sass --watch {{inputfile.scss|inputfile.sass}}:{{outputfile.css}}`