Binary wrapper for Hugo
npm install --save-dev hugo-bin
const execFile = execFile;const hugo = ;;
$(npm bin)/hugo --helpnpm run create -- 'post/my-new-post' # see below 'npm-run-script'
See the Hugo Documentation for more information.
hugo-bin supports options to change the variation of Hugo binaries.
Each option can be configured in the
hugo-bin section of your
Also as local or global .npmrc configuration file:
hugo_bin_build_tags = "extended"
Also as an environment variable:
Note that you have to run
npm install hugo-bin to re-install hugo-bin itself, if you change any of these options.
Set it to
extended to download the extended version binary.
If this is set to
extended but it's not available for the user's platform, then the normal version will be downloaded instead.
Super Inspired By
MIT © Shun Sato