mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
650 B
650 B
date: 2020-07-17 title: "Hugo 0.74.2: A couple of Bug Fixes" description: "This version fixes a couple of bugs introduced in 0.74.0." categories: ["Releases"] images:
- images/blog/hugo-bug-poster.png
Add .Defines to js.Build options 35011bcb @bep #7489
This is needed to import react
as a library, e.g.:
{{ $jsx := resources.Get "index.jsx" }}
{{ $options := dict "defines" (dict "process.env.NODE_ENV" "\"development\"") }}
{{ $js := $jsx | js.Build $options }}