Home Windows Docker Nuxt
Post
Cancel

Windows Docker Nuxt

参考:

https://nuxtjs.org/docs/configuration-glossary/configuration-watchers/

https://webpack.js.org/configuration/watch/#watchoptions

如果你的项目是个nuxt (webpacker)项目的话, 会发现windows下的docker中的文件改变之后,对应的项目没有reload

我都无语了。

浪费了我大半天

最后线索来自于这里:

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

修改nuxt.config.js

  watchers: {
    webpack: {
      poll: true
    }
  },

太爽了

This post is licensed under CC BY 4.0 by the author.