Skip to content

Instantly share code, notes, and snippets.

@codespore
Last active January 23, 2021 20:57
Show Gist options
  • Save codespore/de9b9079756e4bb5041ac32350f9606b to your computer and use it in GitHub Desktop.
Save codespore/de9b9079756e4bb5041ac32350f9606b to your computer and use it in GitHub Desktop.
const { environment } = require('@rails/webpacker')
const webpack = require('webpack')
environment.plugins.append('Provide',
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
Popper: ['popper.js', 'default']
})
)
module.exports = environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment