There's a section specifying where to put js files on the documentation
https://github.com/rails/webpacker#paths. You can put the files anywhere,
if you put them inside the packs folder webpacker will create bundles using
those files, if you put them elsewhere wenpacker will bundle them inside
the packs that require them.

El dom., 22 dic. 2019 a las 4:48, fugee ohu (<fugee...@gmail.com>) escribió:

> Where do I put my custom javascript files now, under javascripts or under
> javascripts/packs or should i create a directory like 'custom' under
> javascripts and then in javascript/packs/application.js i would have to
> import "../custom" and that would import all the javascript files in the
> custom directory Can someone please clarify?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/8295b70b-e09e-4fe3-96ba-cb5017125ace%40googlegroups.com
> <https://groups.google.com/d/msgid/rubyonrails-talk/8295b70b-e09e-4fe3-96ba-cb5017125ace%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcAG8S4DnZctUV_pVpo7OX5-FPCWHw2cWA6mUf3Wdh1stg%40mail.gmail.com.

Reply via email to