-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
feat: bundle assets from dependencies #151
Comments
I think this would be mostly an issue for the server side rendering right? Because on the client you can use the standard web apis to modify the head (which is not controlled by jaspr on the client anyways). |
Yea I think so. Just to clarify we can use the standard html library on client right? Jasper doesn't have client side features? |
I mainly think this is important so devs don't have to deal as much with the native web files, especially devs who have never dealt with them before can use jasper ui libraries instead. |
Yes.
It does, but on a high level abstraction of things. There is the analogy to flutter that most of the time its fine just using widgets, but if you want to, you can also use the custom painter and draw pixels yourself. For jaspr this low level control is using the dart:html library directly to modify the dom. |
Do you have a concrete use-case in mind as an example? Its hard to design an feature without knowing what it would be used for exactly |
Let's say this for example: Jaspr aims to incorporate external component systems and libraries, currently, devs can install these libraries through There should be an easy, standardized install process that sets up the dependencies of the libraries within the Jaspr project. |
Dev wants to install jaspr-material package instead of adding dependencies in the dom, the jaspr-material package would declare the dependencies and the |
maybe this would necessiate some kind of |
another example would be if i wanted to add a font dependency, I could add it via |
Description
We need Util functions to add to the Document object, e.g if I want to add a script to head after Document is instantiated. Functions like these would be useful for 3rd party integrations and decrease setup for the end developer.
An example use case would be if I am creating a component library or need external dependencies, then the dev will need to make sure to add them to the index.html file or the Document object. We need some type of hook to be exposed so 3rd party packages can call these in the initState or build functions and these dependencies can go in the head section (or any other section) at build time.
Additional Context
The text was updated successfully, but these errors were encountered: