Permalink
Browse files

Make jQuery available to the application pack

  • Loading branch information...
calleerlandsson committed Feb 1, 2019
1 parent d8949d7 commit 57a76f78b45f653cfd0303d8f635becc233fbf8e
Showing with 12 additions and 0 deletions.
  1. +6 −0 config/webpack/environment.js
  2. +1 −0 package.json
  3. +5 −0 yarn.lock
@@ -1,3 +1,9 @@
const { environment } = require('@rails/webpacker')

const webpack = require('webpack')
environment.plugins.append('Provide', new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery'
}))

module.exports = environment
@@ -5,6 +5,7 @@
"@rails/activestorage": "^6.0.0-alpha",
"@rails/ujs": "^6.0.0-alpha",
"@rails/webpacker": "3.5",
"jquery": "^3.3.1",
"turbolinks": "^5.2.0"
},
"devDependencies": {

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 57a76f7

Please sign in to comment.