Skip to content

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

@NSoiffer

Description

@NSoiffer

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 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions