我知道 Bootstrap
依赖项涉及在包含 Bootstrap JS 库之前使用 Tether 和 jQuery。我已经通过我的package.json文件安装了Bootstrap:
"dependencies": {
[...]
"bootstrap": "4.0.0-alpha.6",
[...]
}
这给了我这个输出,我们可以在其中看到依赖项:
bootstrap@4.0.0-alpha.6 node_modules/bootstrap
├── tether@1.4.0
└── jquery@3.2.1
要在我的页面中包含引导程序,我使用以下路径:
<link rel="stylesheet" href="/bootstrap/dist/css/bootstrap.min.css">
---
<script src="/bootstrap/dist/js/bootstrap.min.js"></script>
但是在哪里可以找到Tether和jQuery呢?node_modules中没有创建的文件夹。
我应该手动安装它们吗?
我找到了。现在看起来很明显...
依赖项包含在引导文件夹中,因此:
node_modules/bootstrap/node_modules/tether
node_modules/bootstrap/node_modules/jquery