Dmitrii Filippov | fbdc89d | 2020-01-20 19:38:06 +0100 | [diff] [blame] | 1 | This directory contains bazel rules and CLI tools to preprocess HTML and JS files before bundling. |
| 2 | |
| 3 | There are 2 different tools here: |
| 4 | * links-updater (and update_links rule) - updates link in HTML files. |
| 5 | Receives list of input and output files as well as a redirect.json file with information |
| 6 | about redirects. |
| 7 | * preprocessor (and prepare_for_bundling rule) - split each HTML files to a pair of one HTML |
| 8 | and one JS files. The output HTML doesn't contain `<script>` tags and JS file contains |
| 9 | all scripts and imports from HTML file. For more details see source code. |