Files
gerrit/tools/node_tools/polygerrit_app_preprocessor
David Ostrovsky 2c39bd7540 Bump rules_nodejs to version 3.1.0
Change-Id: I3f0d893b2870c8cf543ac5558157858c3390ee02
2021-02-02 20:44:39 +01:00
..
2021-02-02 20:44:39 +01:00
2020-02-12 16:41:59 +01:00
2020-03-17 10:28:09 +00:00

This directory contains bazel rules and CLI tools to preprocess HTML and JS files before bundling.

There are 2 different tools here:

  • links-updater (and update_links rule) - updates link in HTML files. Receives list of input and output files as well as a redirect.json file with information about redirects.
  • preprocessor (and prepare_for_bundling rule) - split each HTML files to a pair of one HTML and one JS files. The output HTML doesn't contain <script> tags and JS file contains all scripts and imports from HTML file. For more details see source code.