reveal-hugo icon indicating copy to clipboard operation
reveal-hugo copied to clipboard

Don't populate disabled plugins in the generated tree

Open chandlerc opened this issue 2 years ago • 1 comments
trafficstars

Currently, even when I disable the default plugins and enable a selective subset, the generated tree includes all the files for the plugins, for example all the CSS files for highlight.js that I don't actually use.

It'd be nice if there was a way to suppress this.

chandlerc avatar Apr 25 '23 09:04 chandlerc

I didn't really think it would work, but adding a section for [[module.mounts]] like:

[[mounts]]
  source = '/dev/null'
  target = 'static/highlight-js'

Seems to do what I want. This does seem a bit of a hack though, but it at least lets me zap the directories not needed from my deployment.

chandlerc avatar Apr 25 '23 09:04 chandlerc