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
Post a Comment