gajus / gajus/babel-plugin-react-css-modules
Can I use webpack resolve.extensions = [".css"] and use import './table' instead of './table.css' in js
Open
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 159
- PR merge metrics
- No merged PRs in 30d
Description
Course

// webpack.config.js
```
resolve: {
extensions: ['*', '.js', '.json', '.jsx', '.tsx', '.ts', '.css', '*.css', '.scss'],
},
```
// RuntimeStyleResolution.js
```
/**
* @file Demonstrates runtime "styleName" resolution.
* @see https://github.com/gajus/babel-plugin-react-css-modules#runtime-stylename-resolution
*/
import React from 'react';
import './table';
export default () => {
return
0.5 ? ' yellow' : '')}>A2
0.5 ? ' yellow' : '')}>B2
0.5 ? ' yellow' : '')}>C2
};
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.