4
我有一个使用Angular CLI创建的应用程序,我使用bootstrap-sass
来自定义主题。我使用以下版本...使用Angular CLI的Web应用程序不显示引导程序sass图形
node: 6.9.5
os: win32 x64
@angular/common: 2.4.8
@angular/cli: 1.0.0-rc.0
@angular/compiler-cli: 2.4.8
bootstrap-sass: 3.3.7
在我.angular-cli.json
我有
"scripts": [
"../node_modules/jquery/dist/jquery.min.js",
"../node_modules/bootstrap-sass/assets/javascripts/bootstrap.min.js"
]
在我html
文件我有
<span class="glyphicon glyphicon-user"></span>
在我scss
文件我有
$bootstrap-sass-asset-helper: true;
$icon-font-path: if($bootstrap-sass-asset-helper, "../bootstrap/", "../fonts/bootstrap/");
@import "../node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss";
运行ng serve
或ng build
时没有错误,并且应用程序在浏览器控制台中正常运行且没有错误。但是,图标仍然不显示。我最初有这个应用程序运行与glyphicons正常显示,然后我将核心应用程序代码迁移到一个新的angular-cli
应用程序。有什么我失踪?
添加关闭span标签下面的 – ArrowHead
解决此尝试的第一把@import线..任何变化? –
@ArrowHead,我在我的代码中,只是忘了在这里添加它。 – Jacqueline