Closed SamShekhovtsov closed 2 years ago
@guillaumebriday Do you know this is expected behavior?
I have also noticed if a pack file is under a subdirectory, it is no longer generating the pack file.
app/packs/ApplicationPack.js - generated app/packs/foo/FooPack.js - skipped (behavior change in v5)
Is that a regression?
@kimyu92, that's the intended behavior. The packs list maps to webpack entry points. You should flatten out your packs to the top-level directory. The new behavior eliminates the problem of subdirectories creating tons of new, unnecessary entry points.
Here is the code change:
I just updated the docs: See https://github.com/rails/webpacker/pull/3227.
Thanks @justin808
Hi community.
The documentation says: Usage Once installed, you can start writing modern ES6-flavored JavaScript apps right away:
however when I do rails webpacker:install , it automatically creates application.js file in the app/packs/entrypoints directory. Why it's not as the documentation states? Actual structure is following: