add jquery (via webpack)
This commit is contained in:
parent
fe027ff57f
commit
e26ef59ea2
3 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue