Hot reloading always doing a full page reload
See original GitHub issueVersion
3.9.3
Environment info
Environment Info:
System:
OS: Windows 10
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Binaries:
Node: 10.16.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 44.18362.1.0
npmPackages:
@vue/babel-helper-vue-jsx-merge-props: 1.0.0
@vue/babel-plugin-transform-vue-jsx: 1.0.0
@vue/babel-preset-app: 3.9.2
@vue/babel-preset-jsx: 1.0.0
@vue/babel-sugar-functional-vue: 1.0.0
@vue/babel-sugar-inject-h: 1.0.0
@vue/babel-sugar-v-model: 1.0.0
@vue/babel-sugar-v-on: 1.0.0
@vue/cli-overlay: 3.9.0
@vue/cli-plugin-babel: ^3.9.2 => 3.9.2
@vue/cli-plugin-eslint: ^3.9.2 => 3.9.2
@vue/cli-plugin-unit-jest: ^3.8.0 => 3.9.0
@vue/cli-service: ^3.8.4 => 3.9.3
@vue/cli-shared-utils: 3.9.0
@vue/component-compiler-utils: 2.6.0 (3.0.0)
@vue/eslint-config-standard: ^4.0.0 => 4.0.0
@vue/preload-webpack-plugin: 1.1.0
@vue/test-utils: 1.0.0-beta.29 => 1.0.0-beta.29
@vue/web-component-wrapper: 1.2.0
bootstrap-vue: 2.0.0-rc.21 => 2.0.0-rc.21
eslint-plugin-vue: 4.7.1
jest-serializer-vue: 2.0.2
portal-vue: 2.1.5
vue: ^2.6.8 => 2.6.10 (1.0.28)
vue-axios: ^2.1.4 => 2.1.4
vue-chartjs: ^3.3.2 => 3.4.2
vue-clickaway: ^2.2.2 => 2.2.2
vue-cropperjs: ^2.2.2 => 2.2.2
vue-eslint-parser: ^6.0.4 => 6.0.4 (2.0.3)
vue-functional-data-merge: 2.0.7
vue-hot-reload-api: 2.3.3
vue-i18n: ^7.8.1 => 7.8.1
vue-jest: 3.0.4
vue-js-toggle-button: ^1.3.2 => 1.3.2
vue-loader: ^15.7.0 => 15.7.1
vue-loading: ^0.1.4 => 0.1.4
vue-lodash: ^2.0.0 => 2.0.2
vue-multiselect: ^2.1.6 => 2.1.6
vue-observe-visibility: ^0.4.3 => 0.4.4
vue-router: ^3.0.1 => 3.0.7
vue-session: ^1.0.0 => 1.0.0
vue-style-loader: ^4.1.2 => 4.1.2
vue-swatches: ^1.0.3 => 1.0.3
vue-template-compiler: ^2.6.8 => 2.6.10
vue-template-es2015-compiler: 1.9.1
vue-tippy: ^2.1.0 => 2.1.3
vue2-dropzone: 3.5.2 => 3.5.2
vuedraggable: ^2.16.0 => 2.23.0
vuejs-datepicker: git https://github.com/brurubio/vuejs-datepicker.git#build => 1.3.3
vuejs-jwt: ^1.1.0 => 1.1.0
vuex: ^3.0.1 => 3.1.1
npmGlobalPackages:
@vue/cli: Not Found
Steps to reproduce
I just need to update style, html or JS code
What is expected?
That my application don’t full reload each little update of style
What is actually happening?
Each time a change is detected the application rebuild (~3s) and the page reload.
When I was on webpack 2.7 everythings worked fined, now it takes longer to compile and detecting change recompile in ~3s instead of ~500ms.
My VueCLI config
module.exports = {
devServer: {
host: 'localhost',
overlay: {
warnings: true,
errors: true
}
},
transpileDependencies: ['vuex'],
runtimeCompiler: true,
productionSourceMap: false,
chainWebpack: config => {
config.module
.rule('vue')
.use('vue-loader')
.loader('vue-loader')
.options({
prettify : false
})
}
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Full page reload instead of module reload · Issue #422 - GitHub
Always full reload with the same error message. With 1.3.0 hot module update was still working. I'm using react-hot-loader/patch as Webpack ...
Read more >Webpack/react hot reload reloading whole page?
It works, and when I change a file (say, src/components/Note/Note.css ) the app does reload. However, I want to only reload the component,...
Read more >Difference between Hot Reloading and Live ... - GeeksforGeeks
Live reloading will reload the whole app and completely reinitialize the state. It only reloads the file that changed. It reloads the whole...
Read more >Hot Module Replacement - webpack
Hot Module Replacement (HMR) exchanges, adds, or removes modules while an application is running, without a full reload. This can significantly speed up ......
Read more >Hot reload - Flutter documentation
Flutter's hot reload feature helps you quickly and easily experiment, build UIs, add features, and fix bugs. Hot reload works by injecting updated...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If i delete package-lock, have affect to my project, because it’s on production?
I can’t share my project as it’s a work project but I will try to provide an example
EDIT :
I started a fresh project with :
I’m using babel and ESLint with standard config. Here is my Vue Config
My package.json
Jest config
ESLint config
Babel config
BrowserList
PostCSS
With this configuration and nearly empty project the page is reloaded each minor modification. With the fresh start only (without my project configuration) It’s not.
I know my ESLint rules are old, I’m updating them soon but I don’t think it’s the problem.