Node

Node Abhängigkeiten aus Themes

published on

Since the upgrade to a Hugo version above 0.75.0 there is an enhancement in the form of the command hugo mod npm pack to merge the node dependencies of a theme with those of a project.

To use this new feature, the dependencies of a theme must be saved in a file package.hugo.json instead of package.json, it is sufficient to simply rename the file created by npm or yarn. A symlink alone doesn’t work because Hugo’s virtual filesystem (intentionally) doesn’t work with symlinks.

Read More...