您好
我试图通过输入"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