-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
External JavaScripts and CSS #151
Comments
@gdotdesign Could we stick with 'javascript' over 'javascripts'? |
I'm more comfortable with it's plural form since the user can add more than one and that conveys it more.
|
@gdotdesign I have got the CSS and JavaScripts (key, values) parsed. |
I see two options:
The first option is easier to implement, but the second would be preferable (multiple smaller files instead of one big file) |
|
I was also thinking if an asset is a link to This would allow managing versions of external libs:
|
But that does not seem necessary, as a user could have Mint + NPM in the same project. |
yes that was my thinking (maybe put it in a sub folder
I think that is out of scope for this feature. It's much more explicit to have the assets in the repository it will be reproducible even when the CDN does not have the files any more. |
Continuing the discussion in #155
|
Would be nice to be able to choose a desired strategy:
|
@Sija What if I want bundling for HTTP/1.x and splitting for HTTP/(2, 3).x ? |
@s0kil good question! I'd build both and serve relevant version on runtime, depending on the request's HTTP version. |
I have though about this some:
This is something I need to think about more. The current implementation is like an escape hatch. I don't know if its even should be in the toolchain. What I can see is that there is a need to make Mint compatible with the existing JavaScript libraries in a package level (mostly bindings). How to make that work is the real challenge here. |
With the |
To make it more easier to integrate with other JavaScript sources we should add the ability to add external CSS to the compiled code.
Alongside with this we should change it how it configured in the
mint.json
file, it should be like this:The provided CSS files should be checked the same way the JavaScripts are checked now and they should be added to the compiled CSS.
The text was updated successfully, but these errors were encountered: