From b1f2661bb78a90b2efc163cc601011a773c37aeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 27 Dec 2020 19:13:59 +0100 Subject: [PATCH] Replace jsconfig.js with jsconfig.json Fixes https://github.com/gohugoio/hugo/issues/8096 --- content/en/getting-started/configuration.md | 2 +- content/en/hugo-pipes/js.md | 2 +- content/en/news/0.78.0-relnotes/index.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/getting-started/configuration.md b/content/en/getting-started/configuration.md index fbfa676bf..97763c002 100644 --- a/content/en/getting-started/configuration.md +++ b/content/en/getting-started/configuration.md @@ -326,7 +326,7 @@ 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. noJSConfigInAssets {{< new-in "0.78.0" >}} -: Turn off writing a `jsconfig.js` 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. +: 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. ## Configure Server diff --git a/content/en/hugo-pipes/js.md b/content/en/hugo-pipes/js.md index 13be8af96..a34454a93 100644 --- a/content/en/hugo-pipes/js.md +++ b/content/en/hugo-pipes/js.md @@ -115,7 +115,7 @@ And then in your JS file: import * as params from '@params'; ``` -Hugo will, by default, generate a `assets/jsconfig.js` file that maps the imports. This is useful for navigation/intellisense help inside code editors, but if you don't need/want it, you can [turn it off](/getting-started/configuration/#configure-build). +Hugo will, by default, generate a `assets/jsconfig.json` file that maps the imports. This is useful for navigation/intellisense help inside code editors, but if you don't need/want it, you can [turn it off](/getting-started/configuration/#configure-build). diff --git a/content/en/news/0.78.0-relnotes/index.md b/content/en/news/0.78.0-relnotes/index.md index fcc20c066..25b0fd4d8 100644 --- a/content/en/news/0.78.0-relnotes/index.md +++ b/content/en/news/0.78.0-relnotes/index.md @@ -12,7 +12,7 @@ Some notes on the improvements in this release: * Now `js.Build` fully supports the virtual union filesystem in [Hugo Modules](https://gohugo.io/hugo-modules/). Any import inside your JavaScript components will resolve starting from the top component mount inside `/assets` with a fallback to the traditional "JS way" (`node_modules` etc.) * You can now pass configuration data from the templates to your scripts via a new `params` option. -* Hugo now writes a `jsconfig.js` file inside `/assets` (you can turn it off) with import mappings to help editors such as VS Code with intellisense/navigation, which is especially useful when there is no common root and the source lives inside some temporary directory. +* Hugo now writes a `jsconfig.json` file inside `/assets` (you can turn it off) with import mappings to help editors such as VS Code with intellisense/navigation, which is especially useful when there is no common root and the source lives inside some temporary directory. * We have also improved the build errors you get from `js.Build`. In server mode you will get a preview of the failing lines and in the console you will get a link to the location. Read more about this in [the documentation](https://gohugo.io/hugo-pipes/js/), but a short usage example would look like: