-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
GH-591 fix sw being loaded from CDN #1328
base: master
Are you sure you want to change the base?
Conversation
… cdn issue - introduced new cli args to define swPath, default would be '/' - decoupled from using webpack public path, better to be implicit
I am still thinking if adding one more flag is the right thing to do here or can we handle it differently |
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.
I dont think this needs a new flag.
cc: @developit
Can't this just always use |
I guess people would sometimes like to build the app for a subfolder? like |
… of __webpack_public_path__ if it begins with http protocol, set it blank
What kind of change does this PR introduce?
Bug Fix, this will close #591
process.env.SW_PATH
instead of webpack public path/
Did you add tests for your changes?
N/A, did a local test though
Summary
Service Worker loaded from CDN, see #591 for more details
Does this PR introduce a breaking change?
don't think so