I am trying to combine multiple scss files in the assets folder into a single css.
I have tried the following options in my hugo yml configuration but none of them work.
- *Using .scss directly
assets:
css:
- name: foo.css
bundle: true
fingerprint: true
path: css/foo.css
src: assets/scss/*.scss
- Using resource.Match
assets:
css:
- name: foo.css
bundle: true
fingerprint: true
path: css/foo.css
src:
- resources.Match("assets/scss/*.scss")
- Using
postprocess
assets:
postprocess:
- name: foo.css
type: css
src: assets/scss/*.scss
targetPath: css/foo.css
bundle: true
fingerprint: true
I was expecting to find a css/foo.css
when I run hugo. But no effect. What am I missing?