-
Notifications
You must be signed in to change notification settings - Fork 816
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
Honor subdirectory prefixes as part of swDest #2140
Conversation
@@ -1091,14 +1091,48 @@ describe(`[workbox-webpack-plugin] GenerateSW (End to End)`, function() { | |||
} | |||
}); | |||
}); | |||
|
|||
it(`should support using a swDest that includes a subdirectory`, function(done) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI—GitHub auto-hides this diff by default, but here's the new test case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks for doing this!
PR-Bot Size PluginChanged File Sizes
New FilesNo new files have been added. All File SizesView Table
Workbox Aggregate Size Plugin3.49KB gzip'ed (23% of limit) |
R: @philipwalton
CC: @derekdowling
Fixes #2138
In the course of fixing the bug that prevented relative
swDest
path prefixes from working, I took the opportunity to normalize all of ourpath
usage in thenode
tools toupath
. That saved some effort in adding in some Windows-specific logic to this PR, and making the change universally seemed like the safest thing to do in the long run, as we've already made some piecemeal changes.