Change file without triggering a reload of Strapi

I’m creating a plugin that requires creating files, the problem (I think) is that Strapi is reloading before I’m done creating all the files, thus breaking.

How could I delay or stop the refresh of Strapi?


Forgot to add a await in /config/functions/bootstrap.js, I think that is what fixed the issue

    watchIgnoreFiles: [
      './my-custom-folder', // Folder
      './scripts/', // File
1 Like