You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found this issue related to getting a image URL from the manifest: #4
However, this does not work since my image is only used in the HTML (for an Admin Menu Icon), so it is not included in the manifest. Is there a way to force it to be included in the manifest?
The text was updated successfully, but these errors were encountered:
As said here swashata/wp-webpack-script#807 (comment) I would recommend not to reference the image at all, which isn't a part of your javascript application. For images needed from server side, like this, just use the image from what-ever location you find convenient.
Also, I would like to focus on the fact, that this tooling is a module bundler (webpack) optimized for specific WordPress use case. Now module bundler is primarily for JavaScript apps, that run on the front-end (at-least in case of WordPress, because the server is PHP).
So the tooling shouldn't be concerned with static assets which are not dependencies of your JavaScript entrypoint (or the app).
I have found this issue related to getting a image URL from the manifest: #4
However, this does not work since my image is only used in the HTML (for an Admin Menu Icon), so it is not included in the manifest. Is there a way to force it to be included in the manifest?
The text was updated successfully, but these errors were encountered: