mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 23:36:06 -04:00
Update configuration.md
Fixes https://github.com/gohugoio/hugo/issues/8396
This commit is contained in:
parent
be0b64a468
commit
1bbed2cf3c
@ -325,6 +325,8 @@ useResourceCacheWhen
|
||||
writeStats {{< new-in "0.69.0" >}}
|
||||
: When enabled, a file named `hugo_stats.json` will be written to your project root with some aggregated data about the build, e.g. list of HTML entities published to be used to do [CSS pruning](/hugo-pipes/postprocess/#css-purging-with-postcss). If you're only using this for the production build, you should consider placing it below [config/production](/getting-started/configuration/#configuration-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.
|
||||
|
||||
**Note** that the prime use case for this is purging of unused CSS; it is build for speed and there may be false positives (e.g. elements that isn't really a HTML element).
|
||||
|
||||
noJSConfigInAssets {{< new-in "0.78.0" >}}
|
||||
: 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 intended 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 file will be written.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user