-
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
Expose component's bower.json for rewriting #145
Comments
Why are you doing it like this in the first place? It sounds like you have something set up in a way that shouldn't that is causes duplicate scripts to be included? |
In the case I mentioned I am trying to use a fallback to a local script in the event that a CDN fails. An example can be seen in h5bp (https://github.com/h5bp/html5-boilerplate/blob/master/src/index.html#L26). |
I believe the component name is the first part of var componentName = filePath.split('/').shift(); |
i.e. that's |
Yeah, the name can be used here as @CWSpear suggested. I think it's a good idea to pass the whole bower config though - can't hurt! I'll mark this as "PR welcome" though, historically, that hasn't gotten much results :( Feel free to add this into the code if you have time! |
still valid, if dubious value |
It would be useful to have access to the values in each component's bower.json for use in the rewrite stage.
In my case, I would like to be able to do something in the config like:
The text was updated successfully, but these errors were encountered: