While trying to integrate this plugin in an Astro project, the parameter provided by srcUrlToFilename couldn’t be used, as sometimes, the url has a format similar to .__VITE_ASSET__abcd1234__.
In order to mitigate the issue, I came up with the idea of including the plugin twice and returning a static path via srcUrlToFilename. However, the following postcss.config.cjs produces unwanted 'Missing font type mapping' warnings as a result:
While trying to integrate this plugin in an Astro project, the parameter provided by
srcUrlToFilename
couldn’t be used, as sometimes, theurl
has a format similar to.__VITE_ASSET__abcd1234__
.In order to mitigate the issue, I came up with the idea of including the plugin twice and returning a static path via
srcUrlToFilename
. However, the followingpostcss.config.cjs
produces unwanted 'Missing font type mapping' warnings as a result:I’d propose an option to suppress such warnings as a mitigation.