问题
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