diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-12-31 11:32:20 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-12-31 11:32:20 +0100 |
commit | ffbf5e45fa0617a37950b34deab63736b1c6b1d3 (patch) | |
tree | 5a714f1aa77be2246dbf18ea14f34cd8ec12737e /resources | |
parent | 48994ea766f08332f57c0f8e74843b6c8617c3d1 (diff) |
Allow Dart Sass transformations to be cached on disk
This enbles people to build their sites/themes on servers where the Dart Sass binary is not available.
Diffstat (limited to 'resources')
-rw-r--r-- | resources/transform.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/transform.go b/resources/transform.go index f276f00c3..ad2485716 100644 --- a/resources/transform.go +++ b/resources/transform.go @@ -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 { |