Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpacker config / loading JavaScript files / etc #159

Open
denny opened this issue Jan 16, 2020 · 3 comments
Open

Webpacker config / loading JavaScript files / etc #159

denny opened this issue Jan 16, 2020 · 3 comments
Labels
help wanted Can you help with this? inexplicably complicated Probably not a good first bug! javascript Involves JavaScript code, or webpacker etc

Comments

@denny
Copy link
Owner

denny commented Jan 16, 2020

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
Copy link
Owner Author

denny commented Jan 16, 2020

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 denny self-assigned this Mar 12, 2020
@denny denny added the help wanted Can you help with this? label Mar 12, 2020
@denny denny removed their assignment Apr 23, 2020
@denny denny added html / css Involves HTML and/or CSS javascript Involves JavaScript code, or webpacker etc refactoring Rewriting existing code to improve its structure, maintainability, etc labels Oct 6, 2020
@denny denny changed the title JavaScript bodgery Webpacker config / loading JavaScript files / etc Oct 10, 2020
@denny
Copy link
Owner Author

denny commented Oct 10, 2020

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 🙂

@denny denny added inexplicably complicated Probably not a good first bug! and removed html / css Involves HTML and/or CSS refactoring Rewriting existing code to improve its structure, maintainability, etc labels Oct 10, 2020
@denny
Copy link
Owner Author

denny commented Jun 14, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Can you help with this? inexplicably complicated Probably not a good first bug! javascript Involves JavaScript code, or webpacker etc
Projects
None yet
Development

No branches or pull requests

1 participant