sass will not have duplicate code. You will know after compiling it into css and taking a look. Although we may have defined many mixin, they will not be converted when they are not actually used in the project. into css, like here, the final generated css will only be reset-btn related to css
If it is a written selector
`
.selector {
}
`
it will be used. No solution
So the imported files are best mixedin
or this kind of
`
%selector {
}
`
sass virtual class form
sass
will not have duplicate code. You will know after compiling it intocss
and taking a look. Although we may have defined manymixin
, they will not be converted when they are not actually used in the project. intocss
, like here, the final generatedcss
will only bereset-btn
related tocss