Currently I can't use postcss-modules due to not being able to access the loader context or get the bundle name of the processed file, so I can't generate modules/[name].json for each webpack entrypoint. It would be nice if postcss-modules could detect itself running under postcss-loader and expose the loader context to getJSON.
Alternatively, a way to call getJSON on an entire webpack bundle would be great.
I realize that these issues may be out of scope for this project.
Currently I can't use
postcss-modulesdue to not being able to access the loader context or get the bundle name of the processed file, so I can't generatemodules/[name].jsonfor each webpack entrypoint. It would be nice if postcss-modules could detect itself running under postcss-loader and expose the loader context togetJSON.Alternatively, a way to call
getJSONon an entire webpack bundle would be great.I realize that these issues may be out of scope for this project.