Commit 6fc3707
Changed files (1)
config
webpack
config/webpack/environment.js
@@ -1,3 +1,13 @@
const { environment } = require('@rails/webpacker')
+const webpack = require('webpack')
+
+environment.plugins.append(
+ 'Provide',
+ new webpack.ProvidePlugin({
+ $: 'jquery',
+ jQuery: 'jquery',
+ 'window.jQuery': 'jquery',
+ })
+)
module.exports = environment