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

Use inline cheap source maps for development mode #1089

Merged
merged 1 commit into from
Sep 14, 2016

Conversation

mlunoe
Copy link
Contributor

@mlunoe mlunoe commented Sep 14, 2016

erikras/react-redux-universal-hot-example#616 (comment)

Before:

delta:dcos-ui ml (master)$ npm start

...

content is served from /Users/ml/Mesosphere/dcos-ui/build
Time: 68228ms
chunk    {0} index.js (main) 9.86 MB [rendered]
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 200 kB [rendered]
webpack: bundle is now VALID.
webpack: bundle is now INVALID.
Time: 9482ms
chunk    {0} index.js, 0.17c12013250a06570382.hot-update.js (main) 9.86 MB [rendered]
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 200 kB
webpack: bundle is now VALID.
webpack: bundle is now INVALID.
Time: 3639ms
chunk    {0} index.js, 0.6e5a4047e21c3640a600.hot-update.js (main) 9.86 MB [rendered]
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 200 kB
webpack: bundle is now VALID.
webpack: bundle is now INVALID.
Time: 3597ms
chunk    {0} index.js, 0.ec9b2d9825ecdff0f341.hot-update.js (main) 9.86 MB [rendered]
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 200 kB
webpack: bundle is now VALID.
webpack: bundle is now INVALID.
Time: 2902ms
chunk    {0} index.js, 0.bfddbe22805b35cff948.hot-update.js (main) 9.86 MB [rendered]
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 200 kB
webpack: bundle is now VALID.

=> Reloads between 3-4s

After:

delta:dcos-ui ml (master)$ npm start

...

content is served from /Users/ml/Mesosphere/dcos-ui/build
Time: 59161ms
chunk    {0} index.js (main) 9.86 MB [rendered]
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 200 kB [rendered]
webpack: bundle is now VALID.
webpack: bundle is now INVALID.
Time: 5313ms         
chunk    {0} index.js, 0.17c12013250a06570382.hot-update.js (main) 9.86 MB [rendered]
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 200 kB
webpack: bundle is now VALID.
webpack: bundle is now INVALID.
Time: 2542ms
chunk    {0} index.js, 0.6e5a4047e21c3640a600.hot-update.js (main) 9.86 MB [rendered]
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 200 kB
webpack: bundle is now VALID.
webpack: bundle is now INVALID.
Time: 2688ms
chunk    {0} index.js, 0.ec9b2d9825ecdff0f341.hot-update.js (main) 9.86 MB [rendered]
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 200 kB
webpack: bundle is now VALID.
webpack: bundle is now INVALID.
Time: 2902ms
chunk    {0} index.js, 0.bfddbe22805b35cff948.hot-update.js (main) 9.86 MB [rendered]
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 200 kB
webpack: bundle is now VALID.

=> Reloads between 2.5-3s

@wavesoft
Copy link
Contributor

sweet! 👍

@jfurrow
Copy link
Contributor

jfurrow commented Sep 14, 2016

Nice!

@jfurrow jfurrow merged commit 9d6af57 into master Sep 14, 2016
@jfurrow jfurrow deleted the mlunoe/webpack-performance branch September 14, 2016 20:03
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.

3 participants