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

remove --js-out/--css-out; replace with --assets-dir #543

Merged
merged 2 commits into from
Aug 14, 2023
Merged

Conversation

bakkot
Copy link
Contributor

@bakkot bakkot commented Aug 12, 2023

This is a breaking change. It significantly simplifies things as we introduce more assets, e.g. in #539.

Had to update typescript to fix some issues with the older version, which required some other related changes. I suggest reviewing commits individually.

if (this.opts.multipage) {
await this.buildMultipage(wrapper, commonEles, jsSha);
await this.buildMultipage(wrapper, commonEles);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To explain the change to do buildAssets before buildMultipage:

buildMultipage makes a copy of the document as it exists when buildMultipage is invoked. Previously we were inserting ecmarkup.js etc separately for the two kinds of output: we'd add script src='../ecmarkup.js' in buildMultipage, and then later add script src='ecmarkup.js' in buildAssets.

Now we put all assets in the single-page version initially and then rewrite those references in the copy in buildMultipage like we rewrite any other reference.

src/Spec.ts Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

2 participants