Skip to content

Fix lib exclude #37

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

Closed
wants to merge 3 commits into from
Closed

Fix lib exclude #37

wants to merge 3 commits into from

Conversation

AdamBrodzinski
Copy link
Collaborator

This fixes the last of my lib issues. I had a component lib folder that had mixins for that component and I happened to name it lib/. This only ignores the lib in the root folder.

However, perhaps a better fix is to move ./lib into webpack/lib/* since it's used specifically for webpack builds. This would allow an easier path to ignore and move it out of the root.

Uses the new react-transform for hot-reloading:
https://github.com/gaearon/babel-plugin-react-transform

Note, transform does nothing when `process.env.NODE_ENV` is set to
`’production’`.

- removes react-hot-loader
- moves es stage settings to .babelrc
- adds react-transform settings to .babelrc
makes errors very nice to deal with, shows a red error container
over your app window, much like React native.

https://github.com/gaearon/react-transform-catch-errors
https://github.com/KeywordBrain/redbox-react
any folders inside of app called lib will not be compiled with babel.
adds node_modules exclude to css to prevent slow-down.
@AdamBrodzinski AdamBrodzinski mentioned this pull request Sep 10, 2015
4 tasks
@jedwards1211
Copy link
Owner

This won't work, the core-js custom build script needs to be updated to reflect the new lib folder path. I can just make this change myself

@AdamBrodzinski
Copy link
Collaborator Author

This won't work, the core-js custom build script needs to be updated to reflect the new lib folder path. I can just make this change myself

Oh just an FYI, in this PR the lib path is the same as now. It's from my prod app so I know the core-js works. However if you wanted to tuck that away in webpack/lib I think that would be better.

@jedwards1211
Copy link
Owner

Oh, sorry, I already pushed the change that moves lib into the webpack folder.

@AdamBrodzinski
Copy link
Collaborator Author

Cool, I think that's for the better 👍 Cleaner and out of sight 😄

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

Successfully merging this pull request may close these issues.

2 participants