aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails/app/templates/app/javascript/packs/application.js.tt
blob: 4d7a145cd6cc1c10327ae9dc85517f88910c175c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// This file is automatically compiled by Webpack, along with any other files
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.

import Rails from "rails-ujs"
Rails.start()
<%- unless options[:skip_turbolinks] -%>

import Turbolinks from "turbolinks"
Turbolinks.start()
<%- end -%>
<%- unless skip_active_storage? -%>

import * as ActiveStorage from "activestorage"
ActiveStorage.start()
<%- end -%>
<%- unless options[:skip_action_cable] -%>

import "channels"
<%- end -%>