0
0
Fork 0

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.
This commit is contained in:
Akihiko Odaki 2017-05-16 03:20:10 +09:00 committed by Eugen Rochko
parent 6ee3a10f17
commit 85c9496340
5 changed files with 5 additions and 10 deletions

View file

@ -17,11 +17,8 @@ function main() {
const Mastodon = require('mastodon/containers/mastodon').default;
const React = require('react');
const ReactDOM = require('react-dom');
const Rails = require('rails-ujs');
window.Perf = require('react-addons-perf');
Rails.start();
require.context('../images/', true);
// import customization styles