2022-06-27 19:12:32 +02:00
|
|
|
#!/bin/sh
|
2022-06-20 14:39:00 +02:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cp node_modules/rrweb/dist/record/rrweb-record.min.js frontend/dist/recorder.js
|
|
|
|
cp node_modules/rrweb/dist/record/rrweb-record.min.js.map frontend/dist/recorder.js.map
|
|
|
|
sed -i -e s/rrweb-record.min.js.map/recorder.js.map/ frontend/dist/recorder.js
|
|
|
|
|
|
|
|
cat node_modules/rrweb/dist/plugins/console-record.min.js >> frontend/dist/recorder.js
|
2022-06-20 21:15:21 +02:00
|
|
|
cp node_modules/rrweb/dist/plugins/console-record.min.js.map frontend/dist/console-record.min.js.map
|
2022-06-20 14:39:00 +02:00
|
|
|
|
|
|
|
sed -i -e 's/\/\/\# sourceMappingURL=recorder/window.rrweb = {record: rrwebRecord}\n\/\/# sourceMappingURL=recorder/g' frontend/dist/recorder.js
|