Skip to content

Produce JSON file(s) with class mappings #143

Closed
@andersekdahl

Description

@andersekdahl

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:

{"folder/file1.scss": {
  "class1": "hcgvx657hv67",
  "class2": "uh3hj573"
}, "file2.scss": { 
  ... 
}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions