The other one is managed by Webpacker, and it's located inside
Currently, it's mainly used for Preact components, served via
webpack which is integrated into the Rails app using
There is a packs directory
Since Forem is not a Single Page Application (SPA), Preact components are mounted as needed by including the pack file in the view files.
The include statement corresponds to the pack
If you have more than one webpacker pack on the page, you need to include it in the same
The project uses webpack aliases. The aliases used in the project can be found under
alias in https://github.com/forem/forem/blob/master/config/webpack/environment.js
For more information in regards to
Aside from the Webpacker repository, see also Ross Kaffenberger's visual guide to Webpacker.
If you're interested in bundles sizes and what's contained within them for a production build, run
bin/bundleAnalyzer from the command line.