jimkyndemeyer / react-css-modules-intellij-plugin

React CSS Modules support in IntelliJ IDEA and WebStorm for components written in JavaScript and TypeScript.
MIT License
41 stars 5 forks source link

Feature: support for unnamed imports #10

Open saravanabalagi opened 5 years ago

saravanabalagi commented 5 years ago

Currently syntax highlighting happens only if I require a .css file.

import './welcome.scss';                            // does NOT work
import styles from './welcome.scss';                // works
require './welcome.scss';                           // works

<View styleName="container">
.container {
  flex: 1;
  justify-content: center;
  align-items: center;
  background-color: #333;
}