我使用的Symfony与喝采,并通过阅读后这个文章,它说,更改后重新启动安可,但我找不到命令这样做。我尝试设置nodemon来观看webpack.config.js并抛出错误
yarn run v1.9.4
$ nodemon --watch webpack.config.js ./node_modules/.bin/webpack-dev-server
[33m[nodemon] 1.18.3[39m
[33m[nodemon] to restart at any time, enter `rs`[39m
[33m[nodemon] watching: webpack.config.js[39m
[32m[nodemon] starting `node ./node_modules/.bin/webpack-dev-server`[39m
[31m[nodemon] app crashed - waiting for file changes before starting...[39m
Run Code Online (Sandbox Code Playgroud)
和
throw new Error(`Encore.${prop}() cannot be called yet because the runtime environment doesn't appear to be configured. Make sure you're using the encore executable or call Encore.configureRuntimeEnvironment() first if you're purposely not calling Encore directly.`);
Run Code Online (Sandbox Code Playgroud)
我感觉好像缺少一个简单的命令,但似乎找不到。这就是我在package.json中使用的
"start": "nodemon --watch webpack.config.js ./node_modules/.bin/webpack-dev-server",
Run Code Online (Sandbox Code Playgroud)