You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have our application.js manifest with jquery.ui being required and a couple widgets included as well. There are certain parts of the application that we use one off widgets and we want to just include it on that page alone. We will have a page specific javascript file included on that page and add require rules in it for any 'one off' JS files. Example:
application.js may have:
//= require jquery.ui.datepicker
admin_page.js may have:
//= require jquery.ui.sortable
Unfortunately when using this gem I will now have jquery.ui.core jquery.ui.widget, etc. included again (once from the application.js file and again in the admin_page.js file).
The text was updated successfully, but these errors were encountered:
I'm not sure that there is a way to do this. If you need control this fine-grained, you maybe should be adding the original jQuery UI files manually to your vendor directory, rather than using this gem.
Unsolicited advice: I'd generally advise against trying to optimize for a few extra KB in your CSS. It makes development a lot harder, but buys very little in terms of performance.
This is how the Rails Assets Pipeline (sprockets) works. There's nothing we can think of to help you with your requirements. If you have a suggestion on how to change this gem to support your workflow please let us know and I'll reopen this ticket.
We have our application.js manifest with jquery.ui being required and a couple widgets included as well. There are certain parts of the application that we use one off widgets and we want to just include it on that page alone. We will have a page specific javascript file included on that page and add require rules in it for any 'one off' JS files. Example:
application.js may have:
//= require jquery.ui.datepicker
admin_page.js may have:
//= require jquery.ui.sortable
Unfortunately when using this gem I will now have jquery.ui.core jquery.ui.widget, etc. included again (once from the application.js file and again in the admin_page.js file).
The text was updated successfully, but these errors were encountered: