gajus / gajus/babel-plugin-react-css-modules
Can I use webpack resolve.extensions = [".css"] and use import './table' instead of './table.css' in js
Aperta
- Lingua principale
- JavaScript
- Stelle
- 2k
- Fork
- 159
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
};
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.