From 85e4dd7370eae97ae367e596aa6a10ba42fd4b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 5 Oct 2020 13:34:14 +0200 Subject: Make js.Build fully support modules Fixes #7816 Fixes #7777 Fixes #7916 --- config/commonConfig.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config') diff --git a/config/commonConfig.go b/config/commonConfig.go index 522ced854..9b4edfd90 100644 --- a/config/commonConfig.go +++ b/config/commonConfig.go @@ -41,6 +41,10 @@ type Build struct { // When enabled, will collect and write a hugo_stats.json with some build // related aggregated data (e.g. CSS class names). WriteStats bool + + // Can be used to toggle off writing of the intellinsense /assets/jsconfig.js + // file. + NoJSConfigInAssets bool } func (b Build) UseResourceCache(err error) bool { -- cgit v1.2.3