diff --git a/examples/jscam/.gitignore b/examples/jscam/.gitignore index ccb2c80..8397ddb 100644 --- a/examples/jscam/.gitignore +++ b/examples/jscam/.gitignore @@ -1,2 +1,4 @@ +public/ node_modules/ +dist/ package-lock.json \ No newline at end of file diff --git a/examples/jscam/package.json b/examples/jscam/package.json index 6d2af0e..21f153b 100644 --- a/examples/jscam/package.json +++ b/examples/jscam/package.json @@ -5,16 +5,18 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "serve": "webpack-serve --config ./webpack.config.js --content public" + "serve": "webpack-serve --config ./webpack.config.js --content public", + "build": "npx webpack && cp src/index.html public/ && cp dist/* public/" }, "author": "l1npengtul", "license": "MPL-2.0", "dependencies": { - "nokhwa": "file:../../nokhwajs", - "webpack-serve": "^1.0.4" + "nokhwa": "^0.4.2", + "wasm-loader": "^1.3.0" }, "devDependencies": { - "webpack": "^4.46.0", - "webpack-cli": "^4.8.0" + "webpack": "^5.51.1", + "webpack-cli": "^4.8.0", + "webpack-dev-server": "^4.0.0" } } diff --git a/examples/jscam/src/index.html b/examples/jscam/src/index.html index aa4a482..3aedc3a 100644 --- a/examples/jscam/src/index.html +++ b/examples/jscam/src/index.html @@ -9,9 +9,9 @@