Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Adds https://plugins.gradle.org/plugin/com.github.node-gradle.node link

...

Alert
titleJavaScript source maps
typeWarning

When we update a library and we use the minified version we need to

  1. verify that we have the source (js and/or css). OpenLayer is an exception because it uses a concatenations of multiple files in the multi mb source distribution, see
    Jira
    serverASF JIRA
    serverId5aa69414-a9e9-3523-82ec-879b028fb15b
    keyOFBIZ-11883
    ;
  2. create a JavaScript source map if it does not exist you may use a tool like https://github.com/mozilla/source-map; note: we are investigating if using https://plugins.gradle.org/plugin/com.github.node-gradle.node would not help
  3. change or add a sourceMappingURL comment in the the minified version. You can follow https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map.
  4. We need to follow a convention for minified files with maps. Like: jquery-3.5.1.js, jquery-3.5.1.min.js and jquery-3.5.1.min.js.map

Here is an interesting link about possible JavaScript source maps errors: https://developer.mozilla.org/en-US/docs/Tools/Debugger/Source_map_errors

...