Answer the question
In order to leave comments, you need to log in
Gulp-sass compiles to CSS when there is a typo in the code. What to do?
Updated from gulp 3 to gulp 4, also updated other packages, among which was gulp-sass (upgrade from 4.0.1 to 4.0.2). After these procedures, there was a problem of incorrect compilation in CSS, namely, when I make a typo outside the SCSS block, then gulp-sass still continues compilation, breaking the layout between CSS blocks at the place of the typo.
I have not found a similar problem and its solution anywhere, can anyone come across this?
//SCSS
opechatka //не вижу проблем - скомпилирую
.soc {
opechatka //ошибку обнаружил, не компилирую
display: flex;
padding-left: 15px;
}
//SCSS
OPECHATKA
.burger {
display: flex;
justify-content: center;
align-items: center;
&:hover {
background-color: #E3CD56;
}
&:active {
background-color: #DBAA35;
transition: none;
}
}
//CSS
OPECHATKA
.burger {
display: flex;
justify-content: center;
align-items: center; }
OPECHATKA
.burger:hover {
background-color: #E3CD56; }
OPECHATKA
.burger:active {
background-color: #DBAA35;
transition: none; }
Answer the question
In order to leave comments, you need to log in
Because the word opechatka is quite a valid expression for a tag. Yes, there is no such tag. But the compiler should not issue a white list of tags, as new ones may appear.
Both options
opechatka
.soc {
}
opechatka .soc {
}
{
opechatka
display: flex;
}
{
opechatka: 10px;
display: flex;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question