write a plug-in because you need to process the final output file, which also involves dependent files.
in watch mode, you can get it from the assets of emit for the first time according to the file path. When the file is changed and recompiled, the corresponding content of this file cannot be found in the assets object of emit.