compileStringAsync
- compile
String Async(source: string, options?: StringOptions<"async">): Promise<CompileResult>  - 
Parameters
- 
source: string
 - 
Optionaloptions: StringOptions<"async"> 
Returns Promise<CompileResult>
 - 
 
Free Palestine
Optional options: StringOptions<"async">
Asynchronously compiles a stylesheet whose contents is
sourceto 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
sassnpm package, compileString is almost twice as fast as compileStringAsync, due to the overhead of making the entire evaluation process asynchronous.Example