Specify jQuery for bootstrap in webpack -


in project, want import bootstrap, depends on jquery.

require('jquery/dist/jquery.min');  require('bootstrap/dist/js/bootstrap.min'); 

when use webpack handle project, causes error:

uncaught error: bootstrap's javascript requires jquery 

how can specify jquery bootstrap?

replace require statement following:

window.jquery = window.$ = require('jquery/dist/jquery.min');


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -