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

hot reload cost much time for rebuilding #242

Open
freeozyl80 opened this issue Feb 9, 2023 · 0 comments
Open

hot reload cost much time for rebuilding #242

freeozyl80 opened this issue Feb 9, 2023 · 0 comments

Comments

@freeozyl80
Copy link

freeozyl80 commented Feb 9, 2023

  • Webpack Version: 5.74.0
  • Operating System (or Browser): os
  • Node Version: v14.17.3
  • webpack-plugin-serve Version:1.6.0

How Do We Reproduce?

Expected Behavior

when using cache in webpack5, minimal changes will cost minimal time to rebuild project

however, using webpack-plugin-serve , just "ctrl + S" , touching a file will cost webpack much time to rebuild

Actual Behavior

even using ramdisk which is useful in significant reduction of build time is helpless

e.g:

with webpack-plugin-serve, result of touching file for rebuild

assets by status 2.28 MiB [cached] 4 assets
asset index.html 379 bytes [emitted]
cached modules 29.9 KiB [cached] 14 modules
modules by path ./node_modules/core-js/ 96.9 KiB
  modules by path ./node_modules/core-js/internals/*.js 76.2 KiB 120 modules
  modules by path ./node_modules/core-js/modules/*.js 20.7 KiB 11 modules
modules by path ./src/ 9.55 KiB 22 modules
modules by path ./node_modules/webpack-plugin-serve/ 25.2 KiB 9 modules
modules by path ./node_modules/vue/dist/*.js 581 KiB
  ./node_modules/vue/dist/vue.runtime.esm.js 297 KiB [built]
  ./node_modules/vue/dist/vue.runtime.common.js 173 bytes [built]
  ./node_modules/vue/dist/vue.runtime.common.dev.js 283 KiB [built]
./node_modules/vue-router/dist/vue-router.esm.js 81.6 KiB [built]
./node_modules/vue-loader/lib/runtime/componentNormalizer.js 2.7 KiB [built]
./node_modules/vue-hot-reload-api/dist/index.js 7.13 KiB [built]
0 (webpack 5.75.0) compiled successfully in 392 ms

without it, result of touching file for rebuild


assets by status 1.5 MiB [cached] 4 assets
asset index.html 379 bytes [emitted]
cached modules 513 KiB (javascript) 6.59 KiB (runtime) [cached] 177 modules
webpack 5.75.0 compiled successfully in 45 ms

any good idea for that?
thanks for replying whatever

@freeozyl80 freeozyl80 changed the title hot reload cost much time for building hot reload cost much time for rebuilding Feb 9, 2023
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

No branches or pull requests

1 participant