Configuration struct for Sass compilation options
Constructors
default
Create a default config with standard values
Sourcenew(style :
String = "expanded", source_map :
Bool = false, source_map_embed :
Bool = false, source_map_urls :
String = "relative", embed_sources :
Bool = false, charset :
Bool = true, error_css :
Bool = true, quiet :
Bool = false, quiet_deps :
Bool = false, verbose :
Bool = false, load_paths :
Array(
String) = [] of
String, include_path :
Array(
String) |
String |
Nil = nil, is_indented_syntax_src :
Bool = false, min_version :
String |
Nil = nil, bin_path :
String |
Nil = nil, fatal_deprecation :
String |
Nil = nil, silence_deprecation :
Array(
String) |
Nil = nil, future_deprecation :
String |
Nil = nil, timeout :
Int64 |
Nil = nil)
Creates a new configuration with the specified options.
All parameters have sensible defaults that match the original
sass.cr behavior.
SourceInstance methods
bin_path
Path to the sass executable
Sourcecharset
Include charset declaration in output
Sourceembed_sources
Embed original source files in source map
Sourceerror_css
Generate error CSS for debugging
Sourcefatal_deprecation
Deprecation severity level to treat as errors
Sourcefuture_deprecation
Opt-in to deprecations from a future version
Sourceinclude_path
Include path(s) for resolving imports
Sourceis_indented_syntax_src
Handle indented syntax (Sass) instead of SCSS
Sourceload_paths
Additional load paths for imports
Sourcemerge(other : Config) : Config
Merge with another config, with this config taking precedence
Sourcemin_version
Minimum required version of Dart Sass
Sourcequiet_deps
Suppress warnings from dependencies
Sourcesilence_deprecation
Deprecations to ignore (by name or Sass version)
Sourcesource_map_embed
Embed source map in CSS output
Sourcesource_map_urls
Source map URLs format: "relative" or "absolute"
Sourcestyle
Output style: "expanded", "compressed", etc.
Sourcetimeout
Timeout in seconds for compilation (nil = no timeout)
Source