NSoiffer / MathCATDemo

A Web-based demo of MathCAT
1 stars 1 forks source link

Fix building so dist/index.html references the correct file #2

Open NSoiffer opened 2 years ago

NSoiffer commented 2 years ago

Every time trunk recompiles, it creates a randomized suffix to the index file that gets referenced from index.html . E.g., index-a8e190f3e5364fb2.js. This files adds some JS code that links the rust and JS together.

Some of the references get added to index.html that point to that file (and the randomized css file), but the line

import {load_yaml_file} from '/MathCATDemo/index-a8e190f3e5364fb2.js';

does not get updated.

I have been manually copy/pasting this, but that needs to get fixed.

Either:

  1. Find out how to get this done by trunk (there really should be a way)
  2. Failing that, add a sed command to the build system (probably in trunk.toml )