Skip to content

Instantly share code, notes, and snippets.

@kevinhq
Created July 9, 2020 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kevinhq/02d9383624238ddeb1861098ed21fb5d to your computer and use it in GitHub Desktop.
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
/* 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