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

config: allow support for groups of entries #5

Open
dominicbarnes opened this issue Jul 1, 2017 · 0 comments
Open

config: allow support for groups of entries #5

dominicbarnes opened this issue Jul 1, 2017 · 0 comments

Comments

@dominicbarnes
Copy link
Member

From @dominicbarnes on November 17, 2016 5:8

I'm running into an issue with a project that has 2 distinct builds I'd want to run, but not ones I'd like to run in parallel. (the output of 1 feeds into the other) The best way I thought to address this was by adding an optional layer to the entries config that allows for named groups. For example:

{
  "entries": {
    "js": [ "pages/*.js" ],
    "css": [ "pages/*.css" ]
  }
}

My thought would be that if you specify no "overrides" at all, it merges all of the groups into a single list. (ie: the current behavior) But if you specify something like "css", the list of entries would only contain those CSS files. If you use a single array, without an object, the behavior would remain the same.

Copied from original issue: makojs/config#19

@dominicbarnes dominicbarnes changed the title Idea: allow support for groups of entries config: allow support for groups of entries Jul 1, 2017
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

1 participant