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
@@ -563,17 +564,19 @@ For commercial usage, we highly recommend self-hosted deployment. The following
563
564
***Step one**: Place the files
564
565
565
566
566
-
Create a directory called `dist` on your server and put the following files in there.
567
+
On your server put the following files in the same directory.
567
568
568
569
> [Download zip](https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx?edition=js) to get these files.
569
570
570
571
```
571
-
dbr-<version>.js
572
-
dbr-<version>.worker.js
573
-
dbr-<version>.wasm.js
574
-
dbr-<version>.wasm
575
-
dbr-<version>.full.wasm.js
576
-
dbr-<version>.full.wasm
572
+
dbr.js // For <script>
573
+
dbr.browser.mjs // For <script type="module">
574
+
dbr.scanner.html // Scanner default UI
575
+
dbr-<version>.worker.js // A worker thread for decoding
576
+
dbr-<version>.wasm.js // Compact Editions
577
+
dbr-<version>.wasm // Compact Editions
578
+
dbr-<version>.full.wasm.js // Full Editions
579
+
dbr-<version>.full.wasm // Full Editions
577
580
```
578
581
579
582
***Step two**: Configure the server
@@ -589,7 +592,12 @@ Create a directory called `dist` on your server and put the following files in t
589
592
> * Java™ EE web app: [web.xml](https://github.com/dynamsoft-dbr/javascript-barcode/blob/dac614f8033661901d85381dfaff8d612115862a/documents/conf/web.xml)
<pre><code> dbr<spanclass="hljs-selector-class">.js</span><spanclass="hljs-comment">// For <script></span>
668
+
dbr<spanclass="hljs-selector-class">.browser</span><spanclass="hljs-selector-class">.mjs</span><spanclass="hljs-comment">// For <script type="module"></span>
dbr-<version><spanclass="hljs-selector-class">.worker</span><spanclass="hljs-selector-class">.js</span><spanclass="hljs-comment">// A worker thread for decoding</span>
dbr-<version><spanclass="hljs-selector-class">.full</span><spanclass="hljs-selector-class">.wasm</span><spanclass="hljs-selector-class">.js</span><spanclass="hljs-comment">// Full Editions</span>
674
+
dbr-<version><spanclass="hljs-selector-class">.full</span><spanclass="hljs-selector-class">.wasm</span><spanclass="hljs-comment">// Full Editions</span></code></pre><ul>
668
675
<li><p><strong>Step two</strong>: Configure the server</p>
669
676
<p>Make sure that your webserver serves the <code>*.wasm</code> file with <code>Content-Type: application/wasm</code> . Otherwise the browser won't be able to recognize it.</p>
670
677
<p>Basically, all you need to do is set the MIME type for <code>.wasm</code> to <code>application/wasm</code>.</p>
<p>If there are any questions, please feel free to contact <ahref="mailto:support@dynamsoft.com">support@dynamsoft.com</a>.</p>
740
+
<p>If there are any questions, please feel free to contact <ahref="mailto:support@dynamsoft.com">support@dynamsoft.com</a>.</p>
0 commit comments