Customizing Bootstrap JS plugins #1288
Replies: 5 comments
-
See Issue #1116 I'll post a workflow shortly as I'm working on reducing js bloat via the current system until there's a more comprehensive solution. |
Beta Was this translation helpful? Give feedback.
-
This is definitely something I'd recommend doing in a child theme. I've done it before (by rewriting the gulpfile and enqueueing each separately) and would be happy to provide a gist if that's still wanted. |
Beta Was this translation helpful? Give feedback.
-
@bacoords is this something we could include in our child theme documentation? |
Beta Was this translation helpful? Give feedback.
-
Isn't this the same as #1287 |
Beta Was this translation helpful? Give feedback.
-
It absolutely is, @0dp |
Beta Was this translation helpful? Give feedback.
-
Is there a way to customize which Bootstrap JS plugins we want to include in the main JS file?
It would be nice to be able to selectively import or even dynamically import javascript modules on demand during runtime.
Bootstrap 4 has this: https://getbootstrap.com/docs/4.0/getting-started/webpack/
Can't we just use the above and replace the way bootstrap is currently integrated?
What are the possible challenges?
Beta Was this translation helpful? Give feedback.
All reactions