From 85c9496340668ad2ebd04eea57d669f82b7dbaf1 Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Tue, 16 May 2017 03:20:10 +0900 Subject: 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/views/layouts/application.html.haml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/views/layouts') diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 73fab9a5c..21590ae3c 100755 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -18,9 +18,8 @@ = ' - ' = title - = stylesheet_pack_tag 'vendor', media: 'all' = stylesheet_pack_tag 'application', media: 'all' - = javascript_pack_tag 'vendor', integrity: true, crossorigin: 'anonymous' + = javascript_pack_tag 'common', integrity: true, crossorigin: 'anonymous' = csrf_meta_tags = yield :header_tags -- cgit