struct

Sass::Config

Inherits Struct < Value < Object

Configuration struct for Sass compilation options

Constructors

default

Create a default config with standard values

Source
new(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.

Source

Instance methods

bin_path

Path to the sass executable

Source
charset

Include charset declaration in output

Source
embed_sources

Embed original source files in source map

Source
error_css

Generate error CSS for debugging

Source
fatal_deprecation

Deprecation severity level to treat as errors

Source
future_deprecation

Opt-in to deprecations from a future version

Source
include_path

Include path(s) for resolving imports

Source
is_indented_syntax_src

Handle indented syntax (Sass) instead of SCSS

Source
load_paths

Additional load paths for imports

Source
merge(other : Config) : Config

Merge with another config, with this config taking precedence

Source
min_version

Minimum required version of Dart Sass

Source
quiet

Suppress warnings

Source
quiet_deps

Suppress warnings from dependencies

Source
silence_deprecation

Deprecations to ignore (by name or Sass version)

Source
source_map

Generate source map

Source
source_map_embed

Embed source map in CSS output

Source
source_map_urls

Source map URLs format: "relative" or "absolute"

Source
style

Output style: "expanded", "compressed", etc.

Source
timeout

Timeout in seconds for compilation (nil = no timeout)

Source
verbose

Enable verbose output

Source