We've moved discussions to Discord

Installing jQuery via Webpacker?

Bob Walsh
I want to install jQuery in a semi-fresh jumpstart pro instance. the various posts I've read say I need to install the following in webpack/environment:
const webpack = require('webpack')
 | environment.plugins.prepend('Provide',
 |   new webpack.ProvidePlugin({
 |     $: 'jquery/src/jquery',
 |     jQuery: 'jquery/src/jquery'
 |   })
 | )

But jumpstart pro has webpack/base.js and no environment.js.

Do I add environment.js? if not, how do I this to base.js?
Bob Walsh
Arrg! did not realize I'm posting on a thread, rather than a new...
Notifications
You’re not receiving notifications from this thread.