-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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
Use webpack to make browser builds #1937
Conversation
Run `webpack` to try it. Things to fix: - [ ] grunt integration - [ ] banner should have "React with Add-Ons" or "JSXTransformer", not always "React" ``` raw gz Compared to last run = = build/JSXTransformer-previous.js -4852 -4089 build/JSXTransformer.js = = build/react-previous.min.js = = build/react-test.js = = build/react-webpack.js +5743 -625 build/react-with-addons.js -19304 -3636 build/react-with-addons.min.js +5619 -149 build/react.js -17906 -3384 build/react.min.js ```
ooooh daaamn 👍 |
Takes ~6 seconds on my machine to build all five files when everything's cached, but you can use |
|
||
function buildHasteMap(root) { | ||
var hasteMap = {}; | ||
glob.sync(root + '/**/*.{js,css}').forEach(function(file) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably don't need css
I'm winning for the dev builds :P |
Pretty sure I can make the dev builds smaller if we care… |
Cool, because browser-pack has |
Oh, you lost all the license and @providesModule comments. |
Oooh, this is sweet. |
Going to close this out. We can revisit if we need to. |
Run
webpack
to try it. Things to fix: