Skip to content
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

Offline: Add default empty cached requests file #20934

Merged
merged 1 commit into from Dec 19, 2017

Conversation

dmsnell
Copy link
Contributor

@dmsnell dmsnell commented Dec 19, 2017

Although there were no actual breakages, with the introduction of #20688
we started getting a warning from webpack that cached-requests.json
didn't exist, if indeed there were no cache file already.

This commit just makes sure that file exists so that there's no warning.

Testing

Build locally. In master you should find a warning about the missing
file but in this branch that warning should be gone.

Although there were no actual breakages, with the introduction of #20688
we started getting a warning from webpack that `cached-requests.json`
didn't exist, if indeed there were no cache file already.

This commit just makes sure that file exists so that there's no warning.
@dmsnell dmsnell added Framework [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Dec 19, 2017
@matticbot
Copy link
Contributor

Copy link
Contributor

@deBhal deBhal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

webpack: Compiled successfully.

Woot! LGTM

@deBhal
Copy link
Contributor

deBhal commented Dec 19, 2017

As an aside (purely because I didn't realize this happened), the bundle warnings were being propagated to the browser too:
edit_contact_info_ julesauspremiumtest _wordpress_com

This PR fixes that too, of course.

@dmsnell dmsnell merged commit 117b952 into master Dec 19, 2017
@dmsnell dmsnell deleted the offline/default-cached-requests branch December 19, 2017 19:40
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants