Skip to content

Instantly share code, notes, and snippets.

@joeybeninghove
Created February 9, 2018 03:57
Show Gist options
  • Save joeybeninghove/aecbdece0b62986fcf224a6e71225236 to your computer and use it in GitHub Desktop.
Save joeybeninghove/aecbdece0b62986fcf224a6e71225236 to your computer and use it in GitHub Desktop.
config/webpack/environment.js
const { environment } = require('@rails/webpacker')
const webpack = require('webpack')
environment.plugins.prepend(
'Provide',
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
jquery: 'jquery'
})
)
module.exports = environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment