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

Suggestion: Support Array rootDir #54

Closed
panayi opened this issue Dec 1, 2015 · 3 comments
Closed

Suggestion: Support Array rootDir #54

panayi opened this issue Dec 1, 2015 · 3 comments

Comments

@panayi
Copy link
Contributor

panayi commented Dec 1, 2015

module.exports = {
  rootDir: ['./src', './node_modules/material-ui/lib', /* ... */],
  // ...
};

This way it becomes easy to use 3rd party components in examples.

@mik01aj
Copy link
Collaborator

mik01aj commented Dec 2, 2015

I'll show you what I use (well, actually it's for components, but I guess it will solve your problem too) :)

components: './scripts/{' + [
    'mobilePages/[A-Z]*',
    'ui/BookCoverBox',
    'ui/BookDetails',
    'ui/Button',
    'ui/Avatar',
    'ui/Rating',
    'ui/Review',
    'ui/ShareButton',
    // 'ui/[A-Z]*',
    // 'ui/developerUtils/[A-Z]*',
    // 'ui/Lottery/[A-Z]*',
    // 'ui/selectBoxes/[A-Z]*',
].join(',') + '}/index.jsx',

@mik01aj
Copy link
Collaborator

mik01aj commented Dec 14, 2015

@panayi did this solve your problem?

@panayi
Copy link
Contributor Author

panayi commented Dec 14, 2015

@mik01aj yes this works great. Thanks!

@panayi panayi closed this as completed Dec 14, 2015
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

3 participants