ShinyCMS-ruby icon indicating copy to clipboard operation
ShinyCMS-ruby copied to clipboard

Webpacker config / loading JavaScript files / etc

Open denny opened this issue 5 years ago • 3 comments

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.

denny avatar Jan 16 '20 21:01 denny

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?

denny avatar Jan 16 '20 21:01 denny

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:

denny avatar Oct 10 '20 19:10 denny

Removed Webpacker. Just need to move JS sprinkles into Sprockets pipeline rather than /public now.

denny avatar Jun 14 '21 00:06 denny