Created
July 9, 2020 06:09
-
-
Save kevinhq/02d9383624238ddeb1861098ed21fb5d 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