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: programming/javascript/user-guide/use-in-framework.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,21 +76,21 @@ In order for these settings to take effect, `dynamsoft.config.ts` must be import
76
76
77
77
### Offline usage
78
78
79
-
In some cases, you may need to use DBR-JS in an offline environment. You can download the [DBR-JS zip](https://www.dynamsoft.com/barcode-reader/downloads/1000003-confirmation/#js) package through the link, which contains all the necessary offline resources in the `./distributables` directory.
79
+
In some cases, you may need to use DBR-JS in an offline environment. You can download the [DBR-JS zip](https://www.dynamsoft.com/barcode-reader/downloads/1000003-confirmation/#js) package through the link, which contains all the necessary offline resources in the `./dist` directory.
80
80
81
-
**Step 1:** Copy the `./distributables` folder to your project.
81
+
**Step 1:** Copy the `./dist` folder to your project.
82
82
83
83
**Step 2:** In `dynamsoft.config.ts`, define the `engineResourcePaths`:
84
84
85
85
```javascript
86
86
// Configures the root path where the .wasm files and other necessary resources for modules are located. Feel free to change it to your own location of these files
> We recommend not renaming any module files within the `./distributables` directory, as this may cause the rootDirectory configuration to not work properly. In such cases, you would need to define resource paths for each module individually.
93
-
> In our case the packages are used only as static resources, we recommend moving the `./distributables` to a dedicated folder forstatic resourcesin your project to facilitate self-hosting.
92
+
> We recommend not renaming any module files within the `./dist` directory, as this may cause the rootDirectory configuration to not work properly. In such cases, you would need to define resource paths for each module individually.
93
+
> In our case the packages are used only as static resources, we recommend moving the `./dist` to a dedicated folder forstatic resourcesin your project to facilitate self-hosting.
94
94
95
95
Next, we will demonstrate how to introduce `dynamsoft.config.ts` into a specific component. Don't skip the [Component for Reading Image](#component-for-reading-image) section even if you only need video barcode decoding.
0 commit comments