Files
gerrit/tools/node_tools/polygerrit_app_preprocessor
Dmitrii Filippov 36c8a8dc60 Preserve html file formatting in links-updater.ts
Initial implementation of the links-updater.ts changes file formatting -
it doesn't preserve line breaks inside tags.
This change update links-updater.ts to avoid unnessecary formatting
change.

Change-Id: Ifccf588c63eefe69782e059fa63f3d1b70f570b9
2020-02-25 16:49:08 +01:00
..
2020-02-12 16:41:59 +01: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.