-
Notifications
You must be signed in to change notification settings - Fork 256
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
Added the inline pipeline #98
Conversation
The inline pipeline allows including the content of files directly into `index.html`. Just add `<link data-trunk rel="inline" href="path/to/file">` to the position in your `index.html` where the content of the files should be placed, and you're good to go. There three content types available: `html`, `css`, and `js`. `html` is pasted into `index.html` as is, `css` is wrapped in `style` tags and `js` in wrapped in `script` tags. The type can also be specified with the `type` attribute.
@DzenanJupic thanks for taking the time to knock this out! Let me review the implementation pattern here. I'll circle back with you shortly. |
@thedodd Sure. |
@DzenanJupic hey there. Just circling back with you on this PR. Looks like there are clippy issues on CI. I have a PR I am about to merge which will hopefully address some of these. If the issues don't go away after merging my PR and updating this one, then it means that they are issues to address in your code I'll keep you posted. Cheers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dig it! Just a few tiny nits. Once those are done, we should be ready to merge and get this guy released!
Hey @thedodd, I resolved all requested changes. Also, removing the |
@DzenanJupic hey boss. Merging a few other PRs has apparently caused conflicts here. We can resolve these pretty easily. If you don't mind reverting your change to the Cargo.toml & the Cargo.lock (just Once that is done, I should be able to merge this right away. |
@thedodd I just reverted both
Should I also revert this, or will you take care of it? |
@DzenanJupic as long as there is no conflict in CHANGELOG.md, then we should be g2g. I think the line you added there is just fine. |
Looks like perhaps the branch just needs to be updated with the latest code from master. Either a rebase or an update merge should do. Want to take care of that? Otherwise I don't mind just doing the update merge from the github UI. |
Woot woot! You rock @DzenanJupic! Thanks for your contribution here! |
A partial solution for #28. The main focus is on inlining raw HTML. But you can also inline CSS and JavaScript (without compression).
The new inline pipeline allows including the content of files directly into
index.html
. Just add<link data-trunk rel="inline" href="path/to/file">
to the position in yourindex.html
where the content of the files should be placed, and you're good to go. There are three content types available:html
,css
, andjs
.html
is pasted intoindex.html
as is,css
is wrapped instyle
tags andjs
is wrapped inscript
tags.The type can be specified with the
type
attribute. If not specified, it's inferred from the file extension.Example
Will result in:
Checklist