-
-
Save 123ish/603c3646439ed01cef8060dfe162d90f to your computer and use it in GitHub Desktop.
Step-by-Step guide on how to move from Sprockets to Webpacker - updated application.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* app/javascript/packs/application.js */ | |
require("@rails/ujs").start(); | |
require("@rails/activestorage").start(); | |
require("packs/example1"); | |
require("packs/example2"); | |
require("packs/example3"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment