please use webpack ProviderPlugin, use global is not a good idea.
// webpack.config.js
module.exports = {
...
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
})
]
};
More Related Contents:
- jQuery is not defined in bootstrap-sass
- How to use a jQuery plugin inside Vue
- HTML nchor Tag doesn’t show link
- How to change color of SVG image using CSS (jQuery SVG image replacement)?
- jQuery Ajax error handling, show custom exception messages
- How to trigger a click on a link using jQuery
- Catch error if iframe src fails to load . Error :-“Refused to display ‘http://www.google.co.in/’ in a frame..”
- JQuery Event Handlers – What’s the “Best” method
- Submitting HTML form using Jquery AJAX
- jqGrid custom format fails on addClass
- The specified value does not conform to the required format yyyy-MM-dd
- Can I load external stylesheets on request?
- how to store an array in jquery cookie?
- How can I change the text color with jQuery?
- What’s the difference between jQuery .val() and .attr(‘value’)?
- AJAX jQuery.load versus jQuery.get
- angular.element vs document.getElementById or jQuery selector with spin (busy) control
- jQuery :first vs. .first()
- Extracting Ajax return data in jQuery
- Difference between .on() functions calls
- jquery with ASP.NET MVC – calling ajax enabled web service
- How can I make a jQuery UI ‘draggable()’ div draggable for touchscreen?
- How to get multiple checkbox values using jQuery?
- Get the current jQuery selector string?
- On select change, get data attribute value
- Show welcome div only once per user / browser session
- jQuery Validate plugin, one out of two fields is required
- Mobile Safari $(window).height() URL bar discrepancy
- How do you make a picture follow your mouse pointer with jquery?
- Rails accepts_nested_attributes_for with f.fields_for and AJAX