From: Nicolas Coden Date: Wed, 9 Jan 2019 20:48:23 +0000 (+0100) Subject: docs: improve description for the webpack externals config in build script X-Git-Tag: v6.6.0~3^2~44^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91353dba1;p=thirdparty%2Ffoundation%2Ffoundation-sites.git docs: improve description for the webpack externals config in build script --- diff --git a/gulp/tasks/javascript.js b/gulp/tasks/javascript.js index e3d2b8e1f..2436b9642 100644 --- a/gulp/tasks/javascript.js +++ b/gulp/tasks/javascript.js @@ -21,10 +21,10 @@ var CONFIG = require('../config.js'); // This tells webpack that the modules imported with the listed paths should not // be included in the build but will be provided later from an external source. // -// `umdExternals` generates for each module a configuration object with the -// given external source path/object to indicate to all import solutions where -// to retrieve the module. "root" is the global variable name to use in -// module-less environments (or in the namespace if given). +// `umdExternals` is used to generate the webpack "externals" configuration: +// an object indicating to different module tools under which name our modules +// are declared. "root" is the global variable name to use in module-less +// environments (or in the namespace if given). // // See https://webpack.js.org/configuration/externals/#externals //