- {{ $sass_options := (dict "targetPath" "css/site.css" "outputStyle" "compressed" "transpiler" "dartsass") }}
- {{ $sass_template := resources.Get "sass/main.scss" }}
- {{ $main_style := $sass_template | resources.toCSS $sass_options }}
+ {{ $sass_options := (dict "targetPath" "css/style.css" "outputStyle" "compressed" "transpiler" "dartsass" "enableSourceMap" (not hugo.IsProduction)) }}
+ {{ $main_style := resources.Get "sass/main.scss" | resources.toCSS $sass_options }}