File: build-webpack.sh

package info (click to toggle)
node-html5-qrcode 2.3.8%2Brepack-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,284 kB
  • sloc: javascript: 18,686; makefile: 15; sh: 14
file content (14 lines) | stat: -rwxr-xr-x 389 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
## Build Script
echo 'Initiating webpack build sequence.'

export NODE_OPTIONS=--openssl-legacy-provider

webpack

## Script copied to dist/html5-qrcode.min.js
## Fork content of 'webpack_append_data.min.js' to final js file to
## make classes global to be backwards compatible.
cat scripts/webpack_append_data.min.js >> dist/html5-qrcode.min.js

echo 'Webpack building done.'