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

add info regarding updating webpack versions #459

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ There are multiple ways to fix this depending on your setup. One way is to set [

`offline-plugin` can cache resources served from a CDN, given the correct configuration. Make sure the resources are served with the correct headers.

#### Updates are not being applied after upgrading from webpack 3 to 4

Since `offline-plugin` updates files based on their hashed chunk names, make sure they are exactly the same before and after upgrading webpack versions. (see original question and answer on [SO](https://stackoverflow.com/questions/57339054/clear-cache-on-current-users-device-in-migrating-from-webpack-3-to-4))

#### DOMException: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/html') Error

Make sure your webserver is serving your assets (including `sw.js`) with the correct mime type. Also, make sure you are using relative / absolute paths correctly (see the [`FAQ`](FAQ.md) regarding this). Also make sure that ServiceWorker and/or AppCache files are generated into the correct folder. You may use `ServiceWorker.output` and `AppCache.output` to change the output path. See [options](options.md) for details.
Expand Down