Skip to content

Instantly share code, notes, and snippets.

@123ish
Forked from kevinhq/custom_loader.js
Created August 15, 2020 18:00
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/256dbe5c7d501f4f9d0e7f9a4d211539 to your computer and use it in GitHub Desktop.
Save 123ish/256dbe5c7d501f4f9d0e7f9a4d211539 to your computer and use it in GitHub Desktop.
Step-by-Step guide on how to move from Sprockets to Webpacker - custom_loader.js
// config/webpack/loaders/custom_loaders.js
module.exports = {
test: /\.ya?ml$/,
loaders: ['json-loader', 'yaml-loader']
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment