a bit confusingly, hugo server automatically uses "development", but hugo --watch does not so i added -e development for those. ( note: i didn't change the default docker build. "hugo build" is production by default, and while technically only Netlify needs to be production, i figure that still gives a way to test/verify minification easily )
adds -e to select the "development" environment for hugo watch ( npm run dev, and docker compose )
move site/hugo.toml to site/config/_default/hugo.toml
adds site/config/development/minify.toml to override the settings for dev mode
updates the readme with the new configuration info
when developing locally having non-minified javascript makes debugging easier. hugo supports having separate configs for development and production by moving the config file into a config directory. https://gohugo.io/getting-started/configuration/#configuration-directory
a bit confusingly,
hugo server
automatically uses "development", buthugo --watch
does not so i added-e development
for those. ( note: i didn't change the default docker build. "hugo build" is production by default, and while technically only Netlify needs to be production, i figure that still gives a way to test/verify minification easily )