]> cat aescling's git repositories - mastodon.git/commit
Introduce common JavaScript file (#2981)
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
Mon, 15 May 2017 18:20:10 +0000 (03:20 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 15 May 2017 18:20:10 +0000 (20:20 +0200)
commit85c9496340668ad2ebd04eea57d669f82b7dbaf1
treee8c8ec78c00b56af36de0aec70221f4b9f323597
parent6ee3a10f1732c6f7fd22a051c78868bf88fecdac
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.
app/javascript/mastodon/main.js
app/javascript/packs/common.js [new file with mode: 0644]
app/javascript/packs/public.js
app/views/layouts/application.html.haml
config/webpack/shared.js