Package de.larsgrefer.sass.embedded
Class SassCompilerFactory
- java.lang.Object
-
- de.larsgrefer.sass.embedded.SassCompilerFactory
-
@RequiresApi(1000) public final class SassCompilerFactory extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SassCompiler
bundled()
Create a newSassCompiler
based on the dart-sass-embedded binary bundled in this jar.static SassCompiler
downloaded()
-
-
-
Method Detail
-
bundled
public static SassCompiler bundled() throws IOException
Create a newSassCompiler
based on the dart-sass-embedded binary bundled in this jar.Note that this is an expensive operation as it spawns a new process. So check if you can re-use the
SassCompiler
instance and make sure toclose
it when you're done.- Returns:
- A freshly created
SassCompiler
based on a new subprocess. - Throws:
IOException
-
downloaded
public static SassCompiler downloaded() throws IOException
- Throws:
IOException
-
-