Last active
November 8, 2023 10:20
-
-
Save vladimirlukyanov/28144f3daacfcc6fe7fb6444a8ddb631 to your computer and use it in GitHub Desktop.
webpack hot reload disable nuxt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add this to nuxt.config.js | |
build: { | |
publicPath: '/zenith/', | |
analyze: false, | |
hotMiddleware : { | |
reload:false | |
}, | |
// watch: ['api', 'modules'], | |
extend(config, {isDev, isClient}) { | |
config.output.publicPath = '/zenith/'; | |
config.entry[0] = 'webpack-hot-middleware/client?name=client&reload=false&timeout=30000&path=/__webpack_hmr'; | |
}, | |
} |
what does this code do?
Ойбой ! This code is old one – inside
hotMiddleware
, you can see thatreload
is set tofalse
. This will disable hot-reloading for your Nuxt project 👋
thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ойбой !
This code is old one – inside
hotMiddleware
, you can see thatreload
is set tofalse
. This will disable hot-reloading for your Nuxt project 👋