I have a legacy symfony project, i want to migrate slowly to webpack, in the documentation it said that we need to include jquery like that
Encore
// you can use this method to provide other common global variables,
// such as '_' for the 'underscore' library
.autoProvideVariables({
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery',
})
The problem is that version of jquery loaded is always 3 but in my legacy project i need the version 2 of jquery. How can i define the version of jquery to load ?