代码拉取完成,页面将自动刷新
Nuxt & Quasar CLI supports this feature out-of-the-box. Make sure to be in debug mode.
In your Vue project, install the launch-editor-middleware package and modifiy your webpack configuration:
var openInEditor = require('launch-editor-middleware')
devServer
option, register the /__open-in-editor
HTTP route:devServer: {
before (app) {
app.use('/__open-in-editor', openInEditor())
}
}
editor
option. See the supported editors list.openInEditor('code')
You can use the launch-editor package to setup an HTTP route with the /__open-in-editor
path. It will receive file
as an URL variable.
You can change the request host (default /
) with the following code in your frontend app:
if (process.env.NODE_ENV !== 'production')
// App served from port 4000
// Webpack dev server on port 9000
window.VUE_DEVTOOLS_CONFIG = {
openInEditorHost: 'http://localhost:9000/'
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。