kriasoft / isomorphic-style-loader

CSS style loader for Webpack that is optimized for isomorphic (universal) web apps.

Home Page:https://reactstarter.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a _getSrcPath function

heygrady opened this issue · comments

I am working on using isomorphic-style-loader with mini-css-extract-plugin. I would like to have a _getSrcPath function so that I can know the original source file that was passed into withStyles. This would allow me to look up the css bundle that includes that file in an asset manifest (like what loadable-components provides).

I need this to take advantage of how mini-css-extract-plugin supports a data-href on inlined css.

See webpack-contrib/mini-css-extract-plugin#352