Skip to content

Commit 795e570

Browse files
committed
refactor: Move Sprocket JS files to Webpack (Part 1)
JavaScript for RfCs, Flashes and the color mode can be moved without modifications. Relates to #3021
1 parent 955f7d6 commit 795e570

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

app/javascript/application.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,7 @@ window.ace = ace; // Publish ace in global namespace
8888
// Turbo
8989
import '@hotwired/turbo-rails';
9090
import './turbo-migration';
91+
92+
// Import of Rails sprocket assets with minimal changes. After the initial migration these files should
93+
// be moved to an appropriate place after some adjustments to fit modern Rails JS.
94+
import 'sprocket_asset_import'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import './flash'
2+
import './color_mode_picker'
3+
4+
import './request_for_comments'

0 commit comments

Comments
 (0)