Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues when impoting multiple json files with same name/keys #50

Closed
esr360 opened this issue May 24, 2017 · 1 comment
Closed

Issues when impoting multiple json files with same name/keys #50

esr360 opened this issue May 24, 2017 · 1 comment

Comments

@esr360
Copy link

esr360 commented May 24, 2017

Potentially related to: #21

I've noticed some issues with the wrong file being read/imported if the project has multiple files with the same name, like this:

[module1/
----[config.json
----[module1.scss
[module1/
----[config.json
----[module2.scss

I've also noticed issues when using multiple files with different names when the contents begin with the same first key, like this:

[module1/
----[module1.json
----[module1.scss
[module1/
----[module2.json
----[module2.scss

Where both module1.json and module2.json start like this:

{
    "default": {
        ...
    }
}

Sometimes the wrong json file will be imported, which obviously breaks the compilation.

My ideal setup would be for all my json files to be named config.json and begin with the default key, but as it stands I have to have unique names for both the file name and opening key.

@pmowrer
Copy link
Owner

pmowrer commented Feb 28, 2018

Sorry we never followed up on this @esr360! If its still something you'd like to try to fix, please re-open with a reproducible scenario.

@pmowrer pmowrer closed this as completed Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants