Skip to content

Options.getJSON is not executed in a .css file that contains the same styles as another .css file #156

Description

@MarcosViniciusPC

My project has the following structure:

  • components/
    index.css
    • header/
      index.css
      • B2B/
        index.css
        • shared/
          • menu/
            index.css
            • subcomponents/
              subMenuList.module.css
              menuList.module.css
      • B2B/
        index.css
        • shared/
          • menu/
            index.css
            • subcomponents/
              subMenuList.module.css
              menuList.module.css

For specific project reasons, the subMenu List.module.css file (B2B and B2C) contains styles that are identical to each other. The menuList.module.css file contains a slight variation: color: var(--primary-color) and color: var(--secondary-color).

In the build, getJSON passes through the components/header/B2C/shared/menu/subcomponents/subMenuList.module.css file, but not through components/header/B2B/shared/menu/subcomponents/subMenuList.module.css. This same behavior does not happen with components/header/[B2C|B2B]/shared/menu/subcomponents/menuList.module.css, the behavior I expect from all files. Is this a desired behavior for the build process or is it a bug?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions