您好
我试图通过输入"MIC_CONFIG": {
"rate": 8000,
"channels": 1,
"debug": true,
"exitOnSilence": 6
}
来使用webpack encore运行开发服务器
检查localhost:9000使我npm run dev-server
并给出该日志
Cannot GET /
知道我已经更改了package.json
「wds」: Project is running at http://localhost:9000/
「wds」: webpack output is served from http://localhost:9000/build/
「wds」: Content not from webpack is served from D:\xampp\htdocs\api-platform\public
「wds」: 404s will fallback to /index.html
,并查看doc
https://symfony.com/doc/current/frontend/encore/dev-server.html
"scripts": {
"dev-server": "encore dev-server --port 9000 --disable-host-check",
"dev": "encore dev",
"watch": "encore dev --watch",
"build": "encore production --progress"
},
控制器
Project structure
api-platform/node_modules
api-platform/public/build/entrypoints.json
api-platform/public/build/manifest.json
api-platform/package.json
api-platform/webpack.config.json
答案 0 :(得分:0)
最后通过订阅几个步骤来解决这个问题。
awk
并添加端口,禁用主机检查到您的开发服务器:
“开发服务器”:“再加开发服务器--port 9000-禁用主机检查”,