-
-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Produce JSON file(s) with class mappings #143
Comments
The var context = require.context(".", true, /\.scss$/);
var obj = context.keys().reduce(function(obj, key) {
obj[key] = context(key);
return obj;
}, {});
obj // {"./folder/file1.scss": { "class1": ... test: /\.scss$/,
loader: "css-loader/locals!scss-loader" |
Just the help I needed, thank you! |
Just wanted to let you know that I've created a loader that fits my needs: https://www.npmjs.com/package/extract-css-module-classnames-loader It doesn't use |
+1 |
Hi,
I'm looking to use the local class names from outside of Javascript (in Razor templates on the server). In order to do that, I need to produce one or more JSON files which contains the original file names and their class mappings.
Could someone lead me in the right direction for doing this? That is, produce a file looking something like this:
The text was updated successfully, but these errors were encountered: