Skip to content

Commit 92be40a

Browse files
Update use-in-framework.md
'distributables' in the docs and 'dist' in the actual JS folder caused a confusion for a customer.
1 parent e30782e commit 92be40a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

programming/javascript/user-guide/use-in-framework.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,21 @@ In order for these settings to take effect, `dynamsoft.config.ts` must be import
7676
7777
### Offline usage
7878
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.
8080
81-
**Step 1:** Copy the `./distributables` folder to your project.
81+
**Step 1:** Copy the `./dist` folder to your project.
8282
8383
**Step 2:** In `dynamsoft.config.ts`, define the `engineResourcePaths`:
8484
8585
```javascript
8686
// 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
87-
CoreModule.engineResourcePaths.rootDirectory = '../assets/distributables';
87+
CoreModule.engineResourcePaths.rootDirectory = '../assets/dist';
8888
```
8989
9090
> Note:
9191
>
92-
> 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 for static resources in 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 for static resources in your project to facilitate self-hosting.
9494
9595
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.
9696

0 commit comments

Comments
 (0)