Can I ignore some keyword while compressing css file through webpack?

I am passing some variable to my css file to update css property in runtime. My css file contains some classes which contains some dynamic property like

.background {
    <# if(variable == true) {>
       background: transparent;
    <# }
 }