Static GitHub Issues

[1759] Modules added files - forces a recompile

prev: Input type being stripped on `nuxt generate`
next: jQuery code stops working after navigating the routes without rebooting the page

Hi,

So i've built a nuxt module which adds css files to nuxt srcDir/assets dir that causes recompilation after the initial compilation.

According to docs - "Modules are basically functions which are called sequentially when booting Nuxt" - so no watchers should yet be initialized and the folders/files should not be watched yet.

So to get to my question and maybe a bug/feature request. Can this be altered somehow? can I add files to projects asset directory without triggering watcher/recompile? If not maybe it's worth to think about it and implement a hook or similar.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1580">#c1580</a>)</em></sub></div>