Replies: 1 comment
-
|
Hi Eric! The For example, Vite Ruby configures it by default, so this would work out of the box. The main advantage of using an alias, is that absolute paths work everywhere. Relative paths could make the template invalid under some circumstances, for example, controllers with namespaces that result in files placed in nested directories. You can use a custom template if you prefer using a relative path, or don't want to define an import alias (or if you are using a bundler that doesn't support aliases). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First off, thanks so much @ElMassimo for this library. I like that it helps without making all too many assumptions.
I had a question about the decision to use paths that start with
~/in some of the templates. For example, in the [template_all.js.erb]:js_from_routes/js_from_routes/lib/js_from_routes/template_all.js.erb
Line 4 in 86002a9
Why would one use that instead of using
./there? That makes more sense to me immediately but I've never used~/so it's possible I'm overlooking something.Beta Was this translation helpful? Give feedback.
All reactions