- If it’s my Web app, why can’t I handover the control (of CSS and images) to Asset Pipeline and let it handle everything like it was doing in earlier versions of Rails.
- I am trying to mix the concepts of both Webpacker and Asset Pipeline to achieve what I want — which is incorrect.
- How can I Integrate newly integrated Trix editor and add Bootstrap features like Modal/AutoComplete etc. with both?
- Let’s say I have 3 types of Users in my PoC (i) User, (ii) Client and (iii) Admin. User and Admin will use the Web App (everything controlled by Asset Pipeline and Webpacker both) and for Client — there will be a React App (controlled only by Webpacker) — Is it possible?
Well enough theory for now. Let’s see some code in action:
1st Approach: Using Asset Pipeline for bootstrap + Using Webpacker for jQuery & Trix Editor + Using Bootstrap – Modal
The only disadvantage I can see in this approach is – repetitive code. I am using bootstrap, trix and jQuery for Asset Pipeline (via Gemfile) as well as for Webpacker (via yarn)
I am all ears to know, if there a way to deal with this situation
Now what if, we have to add react to it? I will soon publish a second part of this article covering this case.