nuxt / vite

⚡ Vite Experience with Nuxt 2
https://vite.nuxtjs.org
1.39k stars 46 forks source link

cannot stop full-reload in hrm #252

Open fh32000 opened 1 year ago

fh32000 commented 1 year ago

Versions

nuxt-vite: v0.2.4 nuxt: v2.15.7 packges.json

{
  "name": "frontstore",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start",
    "generate": "nuxt generate",
    "lint:js": "eslint --ext \".js,.vue\" --ignore-path .gitignore .",
    "lint": "npm run lint:js"
  },
  "dependencies": {
    "@google-cloud/storage": "^5.19.1",
    "@nuxtjs/auth": "^4.9.1",
    "@nuxtjs/axios": "^5.13.6",
    "@nuxtjs/firebase": "^8.2.2",
    "@nuxtjs/sentry": "^5.1.7",
    "@pdftron/webviewer": "^8.3.2",
    "@sentry/webpack-plugin": "^1.19.0",
    "@vimeo/player": "^2.16.3",
    "chart.js": "^2.9.4",
    "core-js": "^3.15.1",
    "firebase": "^9.6.8",
    "lodash.isequal": "^4.5.0",
    "nuxt": "^2.15.7",
    "vue-chartkick": "^0.6.1",
    "vue-cookies": "^1.8.1",
    "vue-observe-visibility": "^1.0.0",
    "vue-social-sharing": "^3.0.9",
    "vue-tweet-embed": "^2.4.0",
    "vuetify": "^2.5.5"
  },
  "devDependencies": {
    "@babel/eslint-parser": "^7.14.7",
    "@nuxtjs/dotenv": "^1.4.1",
    "@nuxtjs/eslint-config": "^6.0.1",
    "@nuxtjs/eslint-module": "^3.0.2",
    "@nuxtjs/vuetify": "^1.12.1",
    "eslint": "^7.29.0",
    "eslint-plugin-nuxt": "^2.0.0",
    "eslint-plugin-vue": "^7.12.1",
    "node-sass": "^7.0.1",
    "nuxt-vite": "^0.2.4",
    "sass": "^1.54.5",
    "sass-loader": "^10.3.1"
  }
}

nuxt.config.js

  // vite: {
  //   // server: {
  //   //   hmr: false,
  //   // }

  // },

the problem is with full-reload with i edit some text the vite connect call full-reload and fully refreshing page when I disable hmr the browser not show new updates .

I went to show updates with out fully refreshing page .

I do some manual update in vite to fix this . I disable // location.reload(); in full-reload case
and it is work find any way to do this using config

ksnip
fh32000 commented 1 year ago

@drslump @manniL @Atinux @MichaelJolley can you help me