我这里有个base.html
和index.html
他们都引用了jquery
和bootstrap
库
但会报Uncaught ReferenceError: jQuery is not defined
如果去掉bootstrap
就没有问题,这是我的引用
这个我的配置
ProviderPlugin
的用法改改试试:
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery'
}),