-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Allow adding attributes to import of scripts and styles #848
Comments
@muuvmuuv I can't reproduce the issue using your example scripts (they all load as expected), but this is still a good feature to have. @endiliey can I claim this? I think a simple check of if source is an this.props.config.scripts.map(source => {
if (source instanceof Object) {
return <script type="text/javascript" key={source.src} {...source} />;
}
return <script type="text/javascript" key={source} src={source} />;
}); |
@helloworld it's yours! I've added an "issue-claimed" label so that others will know not to start work on the issue. If you change your mind about the issue, no worries! Just let me know so that I can remove the label and free it up for someone else to claim. I'll check in with you periodically so that we can keep the task updated with the progress. |
@helloworld maybe it is just a problem of my local running environment. But yes would anyway a good feature. I‘m looking forward to see this in the next updates Sent with GitHawk |
@helloworld still working on this ? |
@wszgxa sure 👍. Send a PR in |
@wszgxa it's yours! I've added an "issue: claimed" label so that others will know not to start work on the issue. If you change your mind about the issue, no worries! Just let me know so that I can remove the label and free it up for someone else to claim. I'll check in with you periodically so that we can keep the task updated with the progress. |
@endiliey This appears to be available again. Can I snag it? Should have some time this weekend. |
@ravennasoftware, sure. Send a PR in. Best asap so we can release 1.5 along with it |
My bad. #937 should have closed this |
🐛 Bug Report
I get an error when loading scripts from a CDN because there is no hash set to the CDN Url. This could be fixed by giving more options to the
scripts
-array in the config:Have you read the Contributing Guidelines on issues?
yes
To Reproduce
Expected behaviour
no error in the console
(Write what you thought would happen.)
Actual Behavior
Error in the console:
(Write what happened. Add screenshots, if applicable.)
Reproducible Demo
https://hastebin.com/elawucenon.js
The text was updated successfully, but these errors were encountered: