【发布时间】:2019-03-08 11:40:49
【问题描述】:
我有一个遗留的 symfony 项目,我想慢慢迁移到 webpack,在documentation 中说我们需要像这样包含 jquery
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',
})
问题是加载的 jquery 版本始终为 3,但在我的旧项目中,我需要 jquery 的版本 2。 如何定义要加载的 jquery 版本?
【问题讨论】:
标签: jquery symfony webpack-encore