Skip to content

Commit 6dcfbdc

Browse files
committed
NS8 release
1 parent 29c180c commit 6dcfbdc

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
## 3.0.0
2+
3+
### Fixed
4+
5+
- NS8 release, with documentation and webpack fix.
6+
17
## 2.0.3
28

39
### Fixed
410

5-
- Fix invalid File instance check (#44), thanks @triniwiz
11+
- Fix invalid File instance check (#44), thanks @triniwiz.
612

713
## 2.0.2
814

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,25 @@ we can automatically use this plugin for all HTTP calls in NativeScript that use
6666
* NativeScript image-cache
6767
* Any NativeScript plugin that uses above methods internally
6868

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](https://v7.docs.nativescript.org/tooling/custom-webpack-configuration):
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:
7070

71-
So if your custom webpack config looks like this:
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:
72+
```typescript
73+
import { NativeScriptConfig } from '@nativescript/core';
74+
75+
export default {
76+
id: 'org.nativescript.nativescripthttptest',
77+
appPath: 'src',
78+
appResourcesPath: 'App_Resources',
79+
android: {
80+
v8Flags: '--expose_gc',
81+
markingMode: 'none'
82+
}
83+
webpackConfigPath: './my-custom.webpack.config.js'
84+
} as NativeScriptConfig;
85+
```
86+
87+
Open the file that `webpackConfigPath` points to, in this case `my-custom.webpack.config.js`, if this file is empty, make it look like this:
7288
```javascript
7389
const webpackConfig = require("./webpack.config");
7490
module.exports = (env) => {

0 commit comments

Comments
 (0)