Skip to content

Commit 8ec183e

Browse files
Make hugo use Dartsass locally
1 parent f232df5 commit 8ec183e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@
7575
"js-test-jquery": "cross-env JQUERY=true npm run js-test-karma",
7676
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel js-lint css-lint lockfile-lint",
7777
"docs": "npm-run-all docs-build docs-lint",
78-
"docs-build": "hugo --cleanDestinationDir --printUnusedTemplates",
78+
"docs-build": "PATH=$(npm config get prefix)/bin:$PATH hugo --cleanDestinationDir --printUnusedTemplates",
7979
"docs-compile": "npm run docs-build",
8080
"docs-vnu": "node build/vnu-jar.mjs",
8181
"docs-lint": "npm run docs-vnu",
82-
"docs-serve": "hugo server --port 9001 --disableFastRender --noHTTPCache --renderToMemory --printPathWarnings --printUnusedTemplates",
82+
"docs-serve": "PATH=$(npm config get prefix)/bin:$PATH hugo server --port 9001 --disableFastRender --noHTTPCache --renderToMemory --printPathWarnings --printUnusedTemplates",
8383
"docs-serve-only": "npx sirv-cli _site --port 9001",
8484
"lockfile-lint": "lockfile-lint --allowed-hosts npm --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json",
8585
"update-deps": "ncu -u -x eslint,eslint-config-xo,karma-browserstack-launcher,karma-rollup-preprocessor,sass",
@@ -163,9 +163,6 @@
163163
"scss/**/*.scss",
164164
"!scss/tests/**"
165165
],
166-
"hugo-bin": {
167-
"buildTags": "extended"
168-
},
169166
"jspm": {
170167
"registry": "npm",
171168
"main": "js/bootstrap",

site/layouts/partials/stylesheet.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{{- end }}
1010

1111
{{- if (ne .Page.Layout "examples") }}
12-
{{- $sassOptions := dict "outputStyle" "expanded" "precision" 6 -}}
12+
{{- $sassOptions := dict "transpiler" "dartsass" "outputStyle" "expanded" "precision" 6 -}}
1313
{{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}}
1414

1515
{{- $targetDocsCssPath := path.Join "/docs" .Site.Params.docs_version "assets/css/docs.css" -}}

0 commit comments

Comments
 (0)