如何使用NetLify-CLI启动Svelte应用程序
我正在尝试在部署到NetLify之前在本地测试我的Svelte应用程序( npm Run dev ),
我可以通过在 package.json.json 中使用以下代码在本地启动一个Svelte App
"scripts": {
...
"start": "sirv public --no-clear"
},
。我想要启动netlify-cli服务器,我需要
"scripts": {
...
"start": "netlify dev"
},
如何平衡这个圆圈?
I am trying to test my Svelte app locally (npm run dev) before deploying to Netlify
I can start a Svelte app locally by using the following code in package.json
"scripts": {
...
"start": "sirv public --no-clear"
},
But if I want so start the netlify-cli server I need
"scripts": {
...
"start": "netlify dev"
},
How can I square this circle?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,这是非疑问。您只是使用
,它有效
It turns out that this is non-question. You just use
and it works