gajus / babel-plugin-react-css-modules

Transforms styleName to className using compile time CSS module resolution.
Other
2.05k stars 162 forks source link

Webpack alias option #254

Closed ceopaludetto closed 5 years ago

ceopaludetto commented 5 years ago

I saw some issues about wepback alias option (e.g. #25, #46, #118), then i've maded this feature with few lines. Usage with new option in babel configuration, like:

"plugins": [
  ["react-css-modules", {
    "webpackConfig": "/path/to/webpack.config.js" 
  }]
]

Can I PR this?

gajus commented 5 years ago

There are already lower level workarounds, e.g.

https://github.com/gajus/babel-plugin-react-css-modules/issues/46#issuecomment-414130223

No plan to support this.