Created
July 15, 2020 05:13
-
-
Save kevinhq/8ebc102e73e4251259e508c90070306f to your computer and use it in GitHub Desktop.
Step-by-Step guide on how to move from Sprockets to Webpacker - custom_loader.js
This file contains 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
// 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