Gitlab pages with hugo extended don't build

Here is the code I use that works very well with Netlify but not Gitlab Pages.

Anyone have an idea?

{{ if .Site.IsServer }}
{{ $cssOpts := (dict “targetPath” “/assets/css/main.css” “enableSourceMap” true ) }}
{{ $styles := resources.Get “/scss/main.scss” | toCSS $cssOpts }}

{{ else }} {{ $cssOpts := (dict "targetPath" "/assets/css/main.css" ) }} {{ $styles := resources.Get "/scss/main.scss" | toCSS $cssOpts | postCSS (dict "config" "postcss.config.js") }} {{ end }}