-
Notifications
You must be signed in to change notification settings - Fork 3
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
Remove external CDN and package bootstrap directly #13
Comments
Thank you @bensheldon ! I gave that a lot of thoughts before and as much as i don't like serving bootstrap or anything else from CDN, i just went for the simplicity. But that's temporary, unless i figure out how to do that better. My concerns are:
I don't have much time to dig into that ATM but i'm super open for resolving that and will welcome any PRs with open arms. Btw, never heard of spectator_sport before but it looks absolutely awesome and i can't wait to use it. Also great to have an author of my fav and go-to background job processing on board 💪 Thank you for all the great work you do! |
We are in agreement 1000%. The approach I've used in GoodJob and Spectator Sport is to vendor and serve the assets out of a custom controller in the gem. It's entirely self contained and kept separate from the patent app's asset pipeline. I even set up a custom importmap declaration for JavaScript; again entirely self contained and without any gem dependencies. Let me try to make a quick PR this week of at least the CSS part of it. |
Would be great, thank you! CSS part should be enough as inner_performance does not and probably will not use any bootstrap JS anytime soon or maybe even never :) |
This is a great looking Rails Engine! 🙇🏻
Unfortunately, I can't use it because it has a dependency on Bootstrap delivered by a 3rd party CDN so it won't pass a security review:
inner_performance/app/views/layouts/inner_performance/application.html.erb
Line 10 in 7bdb3cf
It would be awesome for you to vender and serve Bootstrap directly in the Engine. I documented how I did that with GoodJob:
https://island94.org/2023/03/how-goodjob-s-mountable-rails-engine-delivers-javascript-importmaps-and-frontend-assets
And here's a more recent time I set it up in Spectator Sport:
bensheldon/spectator_sport#20
I'd be happy to help too.
The text was updated successfully, but these errors were encountered: