Home

Issue: 1759

Modules added files - forces a recompile

[issue link]

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.

This bug report is available on Nuxt.js community (#c1580)