This is a request/suggestion for improving the rails guides in 2 places: around the content security policy and Yarn/webpacker workflow
Background is that I’ve used (and love using) rails for years. I was working on other technologies for the past 2 years, so when I started a new project, I jumped from Rails 4 to Rails 5. I’m primarily a back-end developer, and have always just sort of cobbled together my front-ends. CSP and Yarn/Webpacker are really slowing me down, and there is very little documentation I’ve been able to find that can yelp.
Not being a JS guy, this is my first exposure to Yarn. I don’t have experience with npm. There’s no docs that I can find on how it’s supposed to be working in Rails. There are almost no blog posts about it (yet). I am really just looking for a workflow I can follow: e.g. I found a JS library online, how am I supposed to get this working in Rails? So I can add a project to yarn, now what? I’ve been trying to figure out where the magic paths I see in the examples come from (e.g. instead of //= requires project-x, it’s now //= requires project-x/dist/project-x or something).
The second issue I’m hitting is the content security policy. There is a section in the guides that mentions this, but I can’t actually find any docs on what the options are and what they’re doing. (Maybe they’re there and I can’t find them, but I’ve also looked through github, and none of the content_security_policy methods are documented.)
I really appreciate all the work that the people on this list do, and would just throw in a Thank You.