"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/content/en/getting-started/configuration.md" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

configuration.md  (hugo-0.80.0):configuration.md  (hugo-0.81.0)
skipping to change at line 326 skipping to change at line 326
noJSConfigInAssets = false noJSConfigInAssets = false
{{< /code-toggle >}} {{< /code-toggle >}}
useResourceCacheWhen useResourceCacheWhen
: When to use the cached resources in `/resources/_gen` for PostCSS and ToCSS. V alid values are `never`, `always` and `fallback`. The last value means that the cache will be tried if PostCSS/extended version is not available. : When to use the cached resources in `/resources/_gen` for PostCSS and ToCSS. V alid values are `never`, `always` and `fallback`. The last value means that the cache will be tried if PostCSS/extended version is not available.
writeStats {{< new-in "0.69.0" >}} writeStats {{< new-in "0.69.0" >}}
: When enabled, a file named `hugo_stats.json` will be written to your project r oot with some aggregated data about the build, e.g. list of HTML entities publis hed to be used to do [CSS pruning](/hugo-pipes/postprocess/#css-purging-with-pos tcss). If you're only using this for the production build, you should consider p lacing it below [config/production](/getting-started/configuration/#configuratio n-directory). It's also worth mentioning that, due to the nature of the partial server builds, new HTML entities will be added when you add or change them while the server is running, but the old values will not be removed until you restart the server or run a regular `hugo` build. : When enabled, a file named `hugo_stats.json` will be written to your project r oot with some aggregated data about the build, e.g. list of HTML entities publis hed to be used to do [CSS pruning](/hugo-pipes/postprocess/#css-purging-with-pos tcss). If you're only using this for the production build, you should consider p lacing it below [config/production](/getting-started/configuration/#configuratio n-directory). It's also worth mentioning that, due to the nature of the partial server builds, new HTML entities will be added when you add or change them while the server is running, but the old values will not be removed until you restart the server or run a regular `hugo` build.
noJSConfigInAssets {{< new-in "0.78.0" >}} noJSConfigInAssets {{< new-in "0.78.0" >}}
: Turn off writing a `jsconfig.js` into your `/assets` folder with mapping of im ports from running [js.Build](https://gohugo.io/hugo-pipes/js). This file is int ended to help with intellisense/navigation inside code editors such as [VS Code] (https://code.visualstudio.com/). Note that if you do not use `js.Build`, no fil e will be written. : Turn off writing a `jsconfig.json` into your `/assets` folder with mapping of imports from running [js.Build](https://gohugo.io/hugo-pipes/js). This file is i ntended to help with intellisense/navigation inside code editors such as [VS Cod e](https://code.visualstudio.com/). Note that if you do not use `js.Build`, no f ile will be written.
## Configure Server ## Configure Server
{{< new-in "0.67.0" >}} {{< new-in "0.67.0" >}}
This is only relevant when running `hugo server`, and it allows to set HTTP head ers during development, which allows you to test out your Content Security Polic y and similar. The configuration format matches [Netlify's](https://docs.netlify .com/routing/headers/#syntax-for-the-netlify-configuration-file) with slighly mo re powerful [Glob matching](https://github.com/gobwas/glob): This is only relevant when running `hugo server`, and it allows to set HTTP head ers during development, which allows you to test out your Content Security Polic y and similar. The configuration format matches [Netlify's](https://docs.netlify .com/routing/headers/#syntax-for-the-netlify-configuration-file) with slighly mo re powerful [Glob matching](https://github.com/gobwas/glob):
{{< code-toggle file="config">}} {{< code-toggle file="config">}}
[server] [server]
[[server.headers]] [[server.headers]]
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)