Introduce common JavaScript file (#2981)
* Create common chunk rather than vendor chunk vendor chunk is a set of modules provided by external vendors, but now we can have a chunk as a set of modules shared by multiple entry points, which could be more efficent than having vendor chunk. * Start rails-ujs in common.js This is used by /settings/two_factor_authentication.
Showing
- app/javascript/mastodon/main.js 0 additions, 3 deletionsapp/javascript/mastodon/main.js
- app/javascript/packs/common.js 2 additions, 0 deletionsapp/javascript/packs/common.js
- app/javascript/packs/public.js 0 additions, 3 deletionsapp/javascript/packs/public.js
- app/views/layouts/application.html.haml 1 addition, 2 deletionsapp/views/layouts/application.html.haml
- config/webpack/shared.js 2 additions, 2 deletionsconfig/webpack/shared.js
app/javascript/packs/common.js
0 → 100644
Please register or sign in to comment