tree: 35cd4d6aeff1882e661fdb6718870a71928f9914 [path history] [tgz]
  1. .gitignore
  2. BUILD
  3. index.bzl
  4. links-updater.ts
  5. preprocessor.ts
  6. README.md
  7. redirects.ts
  8. rollup.config.js
  9. tsconfig.json
  10. utils.ts
tools/node_tools/polygerrit_app_preprocessor/README.md

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.