You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`enabled`|`Boolean`| Addon is enabled. Defaults `true` for production builds |
55
-
|`debug`|`Boolean`| Log serviceworker states (registering, updating, etc) |
56
-
|`autoRegister`|`Boolean`| Enable the sw registration before initializing the application |
57
-
|`importScriptsTransform`|`Function`| Allows for transformation of array sent to workbox [importScripts](https://developers.google.com/web/tools/workbox/modules/workbox-build#generateSW-importScripts)|
|`enabled`|`Boolean`| Addon is enabled. Defaults `true` for production builds |
59
+
|`debug`|`Boolean`| Log serviceworker states (registering, updating, etc) |
60
+
|`autoRegister`|`Boolean`| Enable the sw registration before initializing the application |
61
+
|`importScriptsTransform`|`Function`| Allows for transformation of array sent to workbox [importScripts](https://developers.google.com/web/tools/workbox/modules/workbox-build#generateSW-importScripts)|
62
+
|`importScriptsGlobPatterns`|`Array`| Define files that are going to be imported using [importScripts](https://developers.google.com/web/tools/workbox/modules/workbox-build#generateSW-importScripts)|
58
63
59
64
You can further customize ember-cli-workbox by setting **workbox configurations** in your `config/environment.js`:
60
65
@@ -103,7 +108,7 @@ runtimeCaching: [
103
108
]
104
109
```
105
110
106
-
Note that `importScripts` parameter is overriden by this addon to include all js files on `/public/assets/service-workers/*` folder.
111
+
Note that `importScripts` parameter is overriden by this addon to include all js files on `/public/assets/service-workers/*` folder. If you want to change this path use `importScriptsGlobPatterns` option.
107
112
108
113
> For more details on Workbox configuration take a look at: [Workbox Google Developers](https://developers.google.com/web/tools/workbox/reference-docs/latest/module-workbox-build).
0 commit comments