Solving Sass’s media query duplication problem and enhancing your workflow
Dominique Briggs
6313
There is a fantastic PostCSS plugin “mqPacker” that handles this exact use case. Worth a look if your using a build step.
In my example I’m using less but you could see how this would work with sass I think.
https://gist.github.com/clintonhalpin/d588dd46276229d4b7f8#file-usingmqpacker-js-L13