app/javascripts/packs ?

5 views
Skip to first unread message

fugee ohu

unread,
Nov 23, 2019, 9:50:11 AM11/23/19
to Ruby on Rails: Talk
I read somewhere when adding webpacker to an existing rails app I'd have this directory app/javascripts/packs but in rails 6 I think it's supposed to be /public/packs What's the right path to use?

Ariel Juodziukynas

unread,
Nov 23, 2019, 10:33:07 AM11/23/19
to rubyonra...@googlegroups.com
you develop inside /app/javascript/pack, webpacker compiles the js in /public/packs

El sáb., 23 nov. 2019 a las 11:50, fugee ohu (<fuge...@gmail.com>) escribió:
I read somewhere when adding webpacker to an existing rails app I'd have this directory app/javascripts/packs but in rails 6 I think it's supposed to be /public/packs What's the right path to use?

--
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-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/85d70f5b-da09-4bdc-a767-8e1fff408a71%40googlegroups.com.

fugee ohu

unread,
Nov 23, 2019, 11:04:27 AM11/23/19
to Ruby on Rails: Talk
Thanks, Delete all files from public/packs/js for a clean start?

Ariel Juodziukynas

unread,
Nov 23, 2019, 11:09:54 AM11/23/19
to rubyonra...@googlegroups.com
yes, you can delete them

El sáb., 23 nov. 2019 a las 13:05, fugee ohu (<fuge...@gmail.com>) escribió:
Thanks, Delete all files from public/packs/js for a clean start?

--
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-ta...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages