Commit 6fc3707

mo <mo.khan@gmail.com>
2018-04-09 15:34:17
export jquery.
1 parent b76c123
Changed files (1)
config
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