본문 바로가기
Javascript/Vue.js

nuxt에서 server side 변경시에 hot reloading이 적용이 안 될때

by progrpsk 2019. 6. 13.

nuxt 템플릿을 받고 실행시키면 개발과정에 있어서 api 코드를 변경했는데도 결과가 반영이 안 될때가 있다.

그럴때는 pakage.json 내의 파일을 손봐주면 되는데, 자세한 사항은 아래의 링크에 모두 나와있다.

 

https://github.com/nuxt-community/express-template/issues/119

 

hot reloading not work · Issue #119 · nuxt-community/express-template

rt, when I excute "npm install", and run dev, It's show But when I change some data, hot reloading not work

github.com

https://github.com/nuxt/nuxt.js/issues/1819

 

Watch and reload api folder · Issue #1819 · nuxt/nuxt.js

How to make nuxt watch for "non standard" directories and recompile / reload itself, and more specifically for dirs with additional server apis? I have my express api in ~/api/. Since I r...

github.com

결론: package.json 내의 "dev": "nuxt""dev": "nodemon --watch api --exec \"nuxt\"" 으로 변경해주면 된다.

 

댓글