Conditional assets for mobile/desktop using RESS


I want to use RESS for conditionally separate markup for the different version of a site and want to know if somebody could point me to the best way to load js/css assets. My first thought is to enqueue the right files conditionally based on device but how can I add another js/css source to the grunt workflow? Any Ideas?

Thanks in advance

Look at the syntax in the Gruntfile.js and try figuring it out - sounds like you haven’t tried anything yet. Also look at the docs for grunt-contrib-less and grunt-contrib-uglify.

1 Like