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
Copy file name to clipboardExpand all lines: README.md
+32-32Lines changed: 32 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,54 +66,54 @@ we can automatically use this plugin for all HTTP calls in NativeScript that use
66
66
* NativeScript image-cache
67
67
* Any NativeScript plugin that uses above methods internally
68
68
69
-
The way to do this is quite simple, we only have to import a plugin and add the plugin to the `plugins` array in the webpack config. The easiest way to do this is by using a custom webpack config:
69
+
The way to do this is quite simple, we only have to import a plugin and add the plugin to the webpack config.
70
70
71
-
Open `nativescript.config.ts`, and make sure that you have `webpackConfigPath` option. If you don't have it, add it and also create the webpack config path. Your `nativescript.config.ts` may look like this afterwards:
The `NativeScriptHTTPPlugin` can be given an object with the following properties: `replaceHTTP` (true/false) and `replaceImageCache` (true/false). This way you can control what the plugin replaces. If you don't give this options object we will replace both.
0 commit comments