Skip to content
This repository was archived by the owner on Apr 23, 2019. It is now read-only.
This repository was archived by the owner on Apr 23, 2019. It is now read-only.

CSS File that only exists on variation is being picked up by base variation in production build #147

@irae

Description

@irae

When using wildcards like /css/*.css on .mendelrc, if a CSS file exists only on a variation and not on base, the base bucket for production build is picking up the file that it shouldn't.

How to reproduce in details:

If I have the following example:

    src/client
    ├── base
    │   └── css
    │       └── activity.css
    └── variations
        └── new-card
            └── css
                ├── activity-addon.css
                └── activity.css

variations/new-card/css/activity-addon.css picked up by base even tho there should be no new-card files being used.

Temporary workaround

Currently I am able to use Mendel by creating a dummy file

    src/client
    ├── base
    │   └── css
    │       └── activity.css
    │       └── activity-addon.css
    └── variations
        └── new-card
            └── css
                ├── activity-addon.css
                └── activity.css

Where:

  • base/css/activity-addon.css is empty

Base variation will now show correct styles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions