2020-03-21 11:14:50 +09:00
|
|
|
import Rails from '@rails/ujs';
|
2018-07-14 10:56:41 +09:00
|
|
|
|
|
|
|
export function start() {
|
2024-04-08 17:17:51 +09:00
|
|
|
require.context('../images/', true, /\.(jpg|png|svg)$/);
|
2018-07-14 10:56:41 +09:00
|
|
|
|
2019-01-17 22:06:08 +09:00
|
|
|
try {
|
|
|
|
Rails.start();
|
2024-09-11 22:59:46 +09:00
|
|
|
} catch {
|
2019-01-17 22:06:08 +09:00
|
|
|
// If called twice
|
|
|
|
}
|
2022-12-19 00:51:37 +09:00
|
|
|
}
|