-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Revert "Remove context from file loader (#1914)" #1950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
remember to update the changelog too |
I wasn't sure what to put into the CHANGELOG. Since RC6 and RC7 have both been released it doesn't make sense to remove them from the changelog completely. |
Note that I just found: a74193b#diff-4ac32a78649ca5bdd8e0ba38b7006a1eR24 But I still think that this is a poor default for new users. @marcohamersma, can you comment on whether adding |
Hey, thanks for looking in to this. I'm a bit confused about that and I'd like to look in to it in detail, but I'm a bit swamped the next few days :( Hope to look in to it when I can. |
@gaffneyc wdyt about keeping the assets inside of e.g:
And the helper for images then can be used in this way:
|
@guilleiguaran I think a discussion on using |
This reverts changes to how assets are managed introduced in RC6. The changes themselves were introduced to fix #1887 but I couldn't draw a line between the issue and how these changes were meant to address it. Additionally, they didn't appear to help the user who made the initial request and caused a host of other problems. This appears to be the potential cause for #1938, #1845, #1915, #1947, and #1922. This reverts commit 35ec3ae.
Describes what was done in 33f34e1
@guilleiguaran See #1903 (comment) for more context around this PR. |
Looking to the commit being reverted I can see that it introduced two changes:
I understand (1) is breaking many existing configurations, but we need to revert (2) as well? My proposal is revert (1) but preserving (2) and then we can change file-loader to use options: {
name: 'media/[path][name]-[hash].[ext]',
context: join(sourcePath)
} |
@guilleiguaran Is it worth holding off fixing 1 while there is a discussion and eventual change for 2? I would say no. I propose we get this merged then make another commit or PR to reintroduce |
@guilleiguaran See #1964 with a version that maintains the change to include |
This reverts changes to how assets are managed introduced in RC6. The
changes themselves were introduced to fix #1887 but I couldn't draw a
line between the issue and how these changes were meant to address it.
Additionally, they didn't appear to help the user who made the initial
request and caused a host of other problems.
This appears to be the potential cause for #1938, #1915, #1947, and #1922.
This reverts commit 35ec3ae.