Skip to content

More options/values for labelFormat #1559

@kud

Description

@kud

The problem

For the moment I use "labelFormat": "[dirname]-[filename]--[local]", but that's not enough for me.

Proposed solution

I would like that dirname takes all the folders.

Context

I'm here: /src/pages/Home/Main/Content.js with:

const Heading = styled.div``

class HomePageMainContent extends React.Component {}

I would like that the className generated for Heading is:

  • either xxx-HomePageMainContent--Heading (random-NameOfTheReactClass--NameOfTheLocal)
  • or xxx-pages-Home-Main-Content--Heading (random-The-Whole-Path--NameOfTheLocal)

Thank you :)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions