How do I load bootstrap using npm?

后端 未结 7 415
无人共我
无人共我 2021-02-01 15:35

I have a npm project that uses jquery.

var $ = require(\'jquery\');

I also have an index html file that references bootstrap.

  • 7条回答
    •  既然无缘
      2021-02-01 16:14

      You can try assigning it to global jquery property.

      global.jQuery = require('jquery');
      

    提交回复
    热议问题