Asynchronously compiles the Sass file at path to CSS. Returns a promise
that resolves with a CompileResult if it succeeds and rejects with an
Exception if itfails.
When using the sass npm package, compile is almost
twice as fast as compileAsync, due to the overhead of making the
entire evaluation processasynchronous.
Asynchronously compiles the Sass file at
path
to CSS. Returns a promise that resolves with a CompileResult if it succeeds and rejects with an Exception if it fails.This only allows synchronous or asynchronous Importers and CustomFunctions.
⚠️ Heads up!
When using the
sass
npm package, compile is almost twice as fast as compileAsync, due to the overhead of making the entire evaluation process asynchronous.Example