I'm styling my react app. I'm using css-modules with webpack. Here's my config:
{ test: /\.css$/, loaders: ["style", "css?modules"] },
I styled my component, made a coffee and now it's not working. So I've got a stylesheet I want to use. I'm importing it with:
import styles from "./search.css";
But, when I break inside my component, styles is not defined. None of my styles are now being applied. Here's an example of how I'm using it:
// the chrome inspector only shows the first two styles, the last is not there
<div className={["col-md-2", "col-lg-1", styles.startTimes]}>
Why would styles be empty?