]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
docs: improve description for the webpack externals config in build script
authorNicolas Coden <nicolas@ncoden.fr>
Wed, 9 Jan 2019 20:48:23 +0000 (21:48 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Wed, 9 Jan 2019 20:48:23 +0000 (21:48 +0100)
gulp/tasks/javascript.js

index e3d2b8e1f42cc55bb6eda36ffb62c45fb75b5b20..2436b964256d8a3645dd14c7e9e65ed608902995 100644 (file)
@@ -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
 //