包含 bootstrap.css.map 的正确方法?

Correct way to include bootstrap.css.map?

这是包含 bootstrap.css.map 的正确方法吗?

<link href="css/bootstrap.css.map" rel="stylesheet" />

无需加载它只需从 bootstrap.css

中删除行 /*# sourceMappingURL=bootstrap.css.map */

您不需要 Bootstrap 中的实际地图文件,最好安装 ng-bootstrap。更适合 Angular.

npm install --save @ng-bootstrap/ng-bootstrap

在您的主模块中导入。