ShinyCMS-ruby
ShinyCMS-ruby copied to clipboard
Webpacker config / loading JavaScript files / etc
There are a few bits of JavaScript that have ended up in public/js because I can't figure out how to get Webpacker to do what I want. This all needs fixing.
To consider: is my use of JavaScript too light to be worth the overhead of Webpacker? Should I revert to Sprockets for JavaScript? What is 'the Rails way' now, for a Rails 6 app with 'a bit of JavaScript' rather than a heavily JS-powered front end?
Update on this; I've now ended up loading quite a few things from CDN, e.g. jQuery-ui - again because I can't get Webpack(er) to load them in a usable way. It would be great to get some help (a) fixing this stuff, and (b) understanding it :slightly_smiling_face:
Removed Webpacker. Just need to move JS sprinkles into Sprockets pipeline rather than /public
now.