Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NSoiffer opened this issue Mar 30, 2022 · 0 comments
Open

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

NSoiffer opened this issue Mar 30, 2022 · 0 comments

Comments

@NSoiffer
Copy link
Owner

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 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant