我启动了我的 vue/nuxt 应用程序:
npx create-nuxt-app
Run Code Online (Sandbox Code Playgroud)
我想在运行开发服务器时关闭热重载功能。我在任何地方都找不到执行此操作的选项。nuxt命令的帮助中有:
nuxt --help
Description
Starts the application in development mode (hot-code reloading, error
reporting, etc)
Usage
$ nuxt dev <dir> -p <port number> -H <hostname>
Options
--port, -p A port number on which to start the application
--hostname, -H Hostname on which to start the application
--spa Launch in SPA mode
--universal Launch in Universal mode (default)
--config-file, -c Path to Nuxt.js config file (default: nuxt.config.js)
--help, -h Displays this message
Run Code Online (Sandbox Code Playgroud)
没有关闭热重载的开关。我认为文件中可能有nuxt.config.js,但我无法找到可能的选项。
我已经浏览了从此页面开始的文档: https: //nuxtjs.org/api/configuration-build,但我没有看到它。
这不是下面的完美解决方案,但至少它停止了热重载。
对于使用 Webpack 3 和 Chrome (67.0.3396.99) DevTools 的 Nuxt 1.4.0:
这将停止热重载 - 但也会抛出错误消息。
可能对某人有帮助 - 它对我有用:)
| 归档时间: |
|
| 查看次数: |
6526 次 |
| 最近记录: |