How to import popper.js?

后端 未结 11 2218
广开言路
广开言路 2020-12-25 10:12

It seems to be a lame question, but I cannot to figure it out. How to import popper.js which comes toghether with Bootstrap 4 beta?

I use bower and I\'ve installed B

11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-25 11:10

    The official way to install Popper.js is trough npm, Yarn or NuGet.

    Use either one of the following commands :

    npm i popper.js
    yarn add popper.js
    PM> Install-Package popper.js
    

    Everything is described in the library readme.

    Regarding the "downloads the zip", the zip clearly states that it contains the source code of the library.

    Edit:

    Starting from version 1.12.0, Popper.js is available as Bower dependency.

    This installation method is going to be supported only for the 1.x version of Popper.js and will be removed in 2.x.

    You should migrate your dependencies management to a modern system like npm or Yarn, as Bower suggests as well.

提交回复
热议问题