jfortunato / esbuild-plugin-manifest

Esbuild plugin for building an asset manifest file.
MIT License
31 stars 5 forks source link

Plugin fails if outdir is true, but write false in esbuild options #7

Closed Csszabi98 closed 3 years ago

Csszabi98 commented 3 years ago

The plugin throws an error about non exitent directory when outdir is set, but write is also in the esbuild options.

The plugin should factor in the directories not being created, or create them itself, or add the created manifest file to the BuildResult (most desired).

jfortunato commented 3 years ago

@Csszabi98 This should be fixed in v0.4.5. When using esbuilds write=false option, the manifest file will be added to the BuildResult via the outputFiles property.

Csszabi98 commented 3 years ago

@jfortunato I tested it, and it is working as expected, thank you!