@use
@forward
@import
@mixin
@include
@function
@extend
@error
@warn
@debug
@at-root
@if
@else
@each
@for
@while
true
false
null
sass:color
sass:list
sass:map
sass:math
sass:meta
sass:selector
sass:string
/
-moz-document
This function synchronously compiles a Sass file to CSS. If it succeeds, it returns the result, and if it fails it throws an error.
const sass = require('sass'); // or require('node-sass');const result = sass.renderSync({file: "style.scss"});// ... Copy
const sass = require('sass'); // or require('node-sass');const result = sass.renderSync({file: "style.scss"});// ...
Use compile or compileString instead.
This function synchronously compiles a Sass file to CSS. If it succeeds, it returns the result, and if it fails it throws an error.
Example
Deprecated
Use compile or compileString instead.