Answer the question
In order to leave comments, you need to log in
What is the difference and how to properly include jquery in Webpack?
What is the difference and how to properly include jquery in Webpack?
1. Option in index.js file 2. Second
option in webpack.config.js fileimport $ from 'jquery';
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
}),
Answer the question
In order to leave comments, you need to log in
1. Connect qjuery where you need it (including globally if you want)
2. Automatically import it everywhere without explicit import.
right as you need
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question