gajus / gajus/babel-plugin-react-css-modules
README lacks config documentation
- 主要言語
- JavaScript
- スター
- 2k
- フォーク
- 159
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi, I can't add a StackOverflow question because the tag is too long.

I'm having problems configuring babel-plugin-react-css-modules with Webpack v2.5 There doesn't seem to be any documentation on how to set it up and the demo given doesn't work with webpack 2.5 (can't provide query inside loaders anymore).
Here's what I have right now in my webpack config:
```
{
test: /\.s?css$/,
loaders: [
'style-loader?sourceMap',
'css-loader?modules&importLoaders=1&localIdentName=' +
'[path]___[name]__[local]___[hash:base64:5]'
]
},
```
And in my .babelrc I have:
```
"plugins": [
"react-css-modules"
],
```
(If I leave the babelrc reference out, I don't get any classes added)
The issue I'm facing is that the classes in the stylesheet don't match the classes applied to the element. Presumably because the context is not correct. But I don't know how to specify the context within webpack config.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
READMEを、提供されているwebpack 2.5のloader設定および.babelrcと併せて確認し、まずプラグインコンテキストがどのように設定されているかを確認します。動作するwebpack 2.5のセットアップと、スタイルシートのクラスと要素のクラスの期待される一致を文書化し、その後、報告されたクラス名の不一致と照合して検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- babel, javascript, react, webpack
- 領域
- build-system, documentation, frontend
- issue の種類
- ドキュメント
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100