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

Option to exclude filename from map? #9

Closed
ben-eb opened this issue Apr 18, 2015 · 4 comments
Closed

Option to exclude filename from map? #9

ben-eb opened this issue Apr 18, 2015 · 4 comments

Comments

@ben-eb
Copy link

ben-eb commented Apr 18, 2015

So the current syntax is quite verbose if you have a single config.yml file:

h1 {
    color: map(config, headings, color);
}

It might be nice to allow this syntax in these cases:

h1 {
    color: map(headings, color);
}

It would be useful if you have a small-medium size website and only have a handful of variables that you use with postcss-map.

@pascalduez
Copy link
Owner

Hey @ben-eb,

good idea, I'll implement this. "If only one map is imported you could drop the map selector".
Or maybe set a predefined map name for it. "config" makes sense.

Loosely related to #4

pascalduez added a commit that referenced this issue Apr 19, 2015
@pascalduez
Copy link
Owner

Available as of 0.4.0

@ben-eb
Copy link
Author

ben-eb commented Apr 26, 2015

Awesome, thanks for resolving this so quickly! 👍

@pascalduez
Copy link
Owner

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

No branches or pull requests

2 participants