Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable source maps #22

Open
StfBauer opened this issue Jan 3, 2024 · 0 comments
Open

Disable source maps #22

StfBauer opened this issue Jan 3, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@StfBauer
Copy link

StfBauer commented Jan 3, 2024

I tried to use sass-embedded in Hugo with the following code:

    {{ $options := (dict
        "transpiler" "dartsass"
        "targetPath" "assets/css/main.css"
        "outputStyle" "compressed"
        "omitSourceMap" false
        "sourceMapEmbed" false
        "sourceMap" false
        "enableSourceMap" false
        "includePaths" (slice "./themes/akt/assets/"))
    }}
    {{- if not hugo.IsProduction }}
        NOT PRODUCTION
        {{ $options := (dict
            "transpiler" "dartsass"
            "targetPath" "assets/css/main.css"
            "outputStyle" "expanded"
            "enableSourceMap" true
            "includePaths"
            (slice "./themes/akt/assets/"))
        }}
    {{ end }}
    {{ $style := resources.Get "sass/main.scss" | toCSS $options | postCSS | fingerprint "sha256" }}
    <link rel="stylesheet" href="{{$style.Permalink}}" integrity="{{ $style.Data.Integrity }}">

I tried to disable the sourcempas but somehow I haven't succeeded in doing so.

What do I miss here?

Thanks is advance.

@bep bep self-assigned this May 29, 2024
@bep bep added the bug Something isn't working label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants