]> git.maquefel.me Git - brevno-suite/hugo/commit
scss: Handle single-file sourcemaps correctly
authorJenny Rakoczy <jennyrock42@gmail.com>
Mon, 5 Sep 2022 18:54:34 +0000 (14:54 -0400)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 6 Sep 2022 08:52:28 +0000 (10:52 +0200)
commit02c89a446d1a76491bfb4b9a756d892a83584d17
treedba4f6aa968359aabe8bf50d016f06da931f03f4
parent06c3ac67411e2faaf1545427d4df4e326fffd3c0
scss: Handle single-file sourcemaps correctly

Simple sites may only have one css file. Update the replace directive to
correctly match single-file sourcemaps and multi-file sourcemaps.

Verified locally with and without SASS and CSS imports.

Fixes #8174
resources/resource_transformers/tocss/scss/tocss.go