add jquery (via webpack)

This commit is contained in:
JuliusR 2021-12-18 14:35:53 +01:00
parent fe027ff57f
commit e26ef59ea2
3 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,11 @@
const { environment } = require('@rails/webpacker')
const webpack = require('webpack')
environment.plugins.prepend('Provide',
new webpack.ProvidePlugin({
$: 'jquery/src/jquery',
jQuery: 'jquery/src/jquery'
})
)
module.exports = environment