This repository was archived by the owner on Mar 17, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 256
Support for Directory Output #91
Comments
Conversely, is this something that could be solved by passing a function in as the publicPath? How would that be done? |
I'm running into the same issue too. It's great if your site actually hosts static files in Edit:- I just found out that there was already an on-going discussion of supporting this on #81 |
@serkolch Is the problem still there? Did comment #91 (comment) solved your problem? If not please create minimum reproducible test repo, thanks! |
Fixed by #81 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For reasons outside my control, we have a single webpack output path to a directory (e.g. app/scripts) - I can't do multiple configs for different entries / modules.
I'm using file-loader to hash images. Ideally, they'd end up in a folder outside of scripts (e.g. app/static), so I've used:
This creates the hashed images into the correct directory, but upon requiring the image files, the html shows the '../static' in the src:
<img src="../static/131ddf32imagefile.png>
Is there support for file-loader to choose the output directory? I've tried overwriting that with public path, but it just prepends the public path value to "../static".
The text was updated successfully, but these errors were encountered: