hartsick / ruBB

a very minimal Rails-based forum for friends
https://nicewebsite.online
Other
14 stars 1 forks source link

Remove webpacker and begin using Turbo #53

Closed hartsick closed 2 years ago

hartsick commented 2 years ago

To simplify our Javascript and stylesheet setup, I wanted to remove Webpacker, which I always fight with. To do this, I uninstalled Webpacker and instead moved us toward using the asset pipeline with JS & CSS bundling. The only CSS preprocessor is now Tailwind's, which can be changed in future if I want to write SCSS. It is recommended against by Tailwind, though (unsurprisingly).

In removing Webpacker and moving toward Turbo, I also removed RailsUJS. This meant our existing link_tos with method of :post stopped working due to a known bug (or lack of support) and had to be manually tagged. I also needed to move our system specs from using rack_test to being driven by selenium to support the new Javascript interactions (I'm a little confused by this but ultimately we'll be using and requiring more Javascript so I'm not too concerned).

50