Skip to content
This repository has been 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

Open
irae opened this issue Aug 17, 2018 · 0 comments
Labels

Comments

@irae
Copy link
Collaborator

irae commented Aug 17, 2018

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.

@irae irae added the bug label Aug 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant