0

I'm currently working on site that runs on React.js (15.6.1) and Webpack 1. I'm using a SASS-compatible version of the popular Flexbox Grid. For some reason however it doesn't seem to compile @media expressions like it normally would.

In this example @include viewport($key); works as intended but it completely skips the media query.

@media screen and (min-width: 48em) {
    @include viewport($key);
}

For some reason I don't get any errors. I've tried using sass-loader as well as fast-sass-loader but neither seem to resolve my issue.

I'd be thankful for any helpful advice!

Albin M
  • 45
  • 1
  • 4

1 Answers1

0

You could use react-media npm

https://github.com/ReactTraining/react-media

Piyush Dhamecha
  • 1,485
  • 1
  • 13
  • 22