After searching the web I cannot find a straight answer so my question is: Is it possible in webpack to import css files dynamically like so :
if(foo){
import 'mobile.css'
} else {
import 'desktop.css'
}
I tried this and it does not work; is there a workaround or special webpack module or else ?