Skip to content

Commit

Permalink
Fetch zbar.wasm.bin as a separate resource
Browse files Browse the repository at this point in the history
  • Loading branch information
ninegua committed Sep 20, 2021
1 parent 1598c2d commit d9513a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dist/app.did:
touch $@

dist/app.c: dist/index.html $(OTHER_SRC)
echo -e "/,./dist/index.html\n/manifest.json,./src/manifest.json\n/logo.png,./src/logo.png\n/favicon.ico,./src/favicon.ico" | sh epic.sh > $@
echo -e "/,./release/index.html\n/test.html,./dist/index.html\n/$$(ls dist/*.bin|cut -d/ -f2),$$(ls ./dist/*.bin)\n/manifest.json,./src/manifest.json\n/logo.png,./src/logo.png\n/favicon.ico,./src/favicon.ico" | sh epic.sh > $@

install: dist/app.wasm dist/app.did
install -D dist/app.did ${out}/bin/ic-qr-scanner.did
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
output: {
path: path.resolve(__dirname, "./dist"),
filename: "main.bundle.js",
publicPath: ""
},
target: "web",
devtool: "source-map",
Expand Down Expand Up @@ -41,7 +42,7 @@ module.exports = {
},
{
test: /\.bin$/,
type: "asset/inline",
type: "asset/resource",
},
{
test: /\.did$/,
Expand Down

0 comments on commit d9513a9

Please sign in to comment.