Skip to content

Commit

Permalink
Allow Dart Sass transformations to be cached on disk
Browse files Browse the repository at this point in the history
This enbles people to build their sites/themes on servers where the Dart Sass binary is not available.
  • Loading branch information
bep committed Dec 31, 2020
1 parent 48994ea commit ffbf5e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ var (
// These are transformations that need special support in Hugo that may not
// be available when building the theme/site so we write the transformation
// result to disk and reuse if needed for these,
// TODO(bep) it's a little fragile having these constants redefined here.
var transformationsToCacheOnDisk = map[string]bool{
"postcss": true,
"tocss": true,
"postcss": true,
"tocss": true,
"tocss-dart": true,
}

func newResourceAdapter(spec *Spec, lazyPublish bool, target transformableResource) *resourceAdapter {
Expand Down

0 comments on commit ffbf5e4

Please sign in to comment.