sass bootstrap4 is not getting applied to my html file

筅森魡賤 提交于 2019-12-13 08:28:11

问题


m newbie to sass i have this html file to which i hve applied sass

<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<link href="sass/app.scss" rel="stylesheet" >
 </head>
<body>
hhhhhhhhhhhhhhhhhhhhhhhhhhllllllllllllll
</body>
</html>

and my app.scss

@import "../node_modules/bootstrap/scss/bootstrap";

 body {
 font: 100% $font-size-lg;
color: $red;
 }

these body scss is not getting applied to the html file any help would be appreciated


回答1:


app.scss

$primary: #3498db;
 $secondary: #e67e22;
$success: #2eeeff;
$danger: #e74c3c;

@import "../node_modules/bootstrap/scss/bootstrap.scss";

 /*# sourceMappingURL=styles.css.map */

html

 <link href="scss/app.css" rel="stylesheet" />


来源:https://stackoverflow.com/questions/52759124/sass-bootstrap4-is-not-getting-applied-to-my-html-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!