The options class allow to customize each compilation process. Most options are equals to the well known command line options from sass compilers.
options.getFunctionProviders().add(new MyFunctions());
options.getHeaderImporters().add(new MyHeaderImporter());
options.getImporters().add(new MyImporter());
options.getIncludePaths().add(new File("bower_components/foundation/scss");
options.setIndent("\t");
Treat source_string as sass (as opposed to scss).
options.setIsIndentedSyntaxSrc(true);
options.setLinefeed("\r\n");
Disable sourceMappingUrl in css output.
options.setOmitSourceMapUrl(true);
Output style for the generated css code.
options.setOutputStyle(io.bit3.jsass.OutputStyle.NESTED);
Precision for outputting fractional numbers.
options.setPrecision(6);
If you want inline source comments.
options.setSourceComments(true);
Embed include contents in maps.
options.setSourceMapContents(true);
Embed sourceMappingUrl as data uri.
options.setSourceMapEmbed(true);
Path to source map file. Enables the source map generating. Used to create sourceMappingUrl.
options.setSourceMapFile(new File("stylesheet.css.map");