Skip to content

Instantly share code, notes, and snippets.

@123ish
Forked from kevinhq/application.js
Created August 15, 2020 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 123ish/603c3646439ed01cef8060dfe162d90f to your computer and use it in GitHub Desktop.
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
/* 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