RELEASES Hugo 0.74.2: A couple of Bug Fixes 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 }} Последнее обновление: December 24, 2020 Улучшить эту страницу