samsam2310 / zbar.wasm

A wasm build of C/C++ ZBar barcode scanning library.
GNU Lesser General Public License v2.1
222 stars 30 forks source link

Standalone bundled JS dependency #7

Closed maxkarelov closed 3 years ago

maxkarelov commented 3 years ago

How the package can be bundled to single JS file dependency that can be used in html? I am not strong enough in npm package manager

Thank you in advance!

samsam2310 commented 3 years ago

Hi,

You need some tools to compile them into bundled Javascript files. You can search some keywords about setup a web project for NPM. Basically, you will need something like "webpack" which helps you to create a single js bundel.

You can also use something like cra ("Create React APP"), which can help you setup all the webpack config and some files for web project.

Because this is not diractly related to this project, I will close this issue.