Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Support multiple configurations from neutrinorc #385

Closed
wants to merge 1 commit into from
Closed

Support multiple configurations from neutrinorc #385

wants to merge 1 commit into from

Conversation

eliperelman
Copy link
Member

@eliperelman eliperelman commented Oct 27, 2017

This is a WIP!

Breaking change! This will allow us to finally support multiple configs from .neutrinorc.js by exporting an array.

module.exports = [
  {
    use: ['neutrino-preset-react']
  },
  {
    options: {
      source: 'server'
    },
    use: ['neutrino-preset-node']
  }
];

This works by spawning a new process for each configuration. I tried going down 2 other routes but faced difficulties that were near impossible to overcome in a good way.

Wanted to get this out there for feedback.

Fixes #308.

@edmorley
Copy link
Member

Fixes #385.

s/385/308/ ? :-)

@eliperelman
Copy link
Member Author

@edmorley lol oops.

@eliperelman
Copy link
Member Author

Closing this in favor of a different solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants