Re: [Rails] rails 6 where to put javascript files

2019-12-23 Thread Ariel Juodziukynas
If you have a file inside /packs called application.js that has a line "import Something from '../some_js'", webpacker will include the code from "some_js.js" inside the resulting bundle "application.js". El lun., 23 dic. 2019 a las 12:10, fugee ohu () escribió: > > > On Sunday, December 22,

Re: [Rails] rails 6 where to put javascript files

2019-12-23 Thread fugee ohu
On Sunday, December 22, 2019 at 6:10:58 PM UTC-5, Ariel Juodziukynas wrote: > > 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

Re: [Rails] rails 6 where to put javascript files

2019-12-22 Thread Ariel Juodziukynas
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