Skip to content

🎥 Make videos programmatically with React

add favicon to remotion bundle

Jonny Burger17ed53c5a395
diff --git a/packages/bundler/favicon.ico b/packages/bundler/favicon.ico
new file mode 100644
index 0000000000..76cef1e103
Binary files /dev/null and b/packages/bundler/favicon.ico differ
diff --git a/packages/bundler/package.json b/packages/bundler/package.json
index 44bd2e512b..88f1d3a0e9 100644
--- a/packages/bundler/package.json
+++ b/packages/bundler/package.json
@@ -19,7 +19,8 @@
},
"files": [
"dist",
- "react-shim.js"
+ "react-shim.js",
+ "favicon.ico"
],
"author": "Jonny Burger <[email protected]>",
"license": "SEE LICENSE IN LICENSE.md",
diff --git a/packages/bundler/src/bundle.ts b/packages/bundler/src/bundle.ts
index 1f3e89b685..e9188cd89c 100644
--- a/packages/bundler/src/bundle.ts
+++ b/packages/bundler/src/bundle.ts
@@ -266,6 +266,9 @@ export async function bundle(...args: Arguments): Promise<string> {
});
fs.writeFileSync(path.join(outDir, 'index.html'), html);
-
+ fs.copyFileSync(
+ path.join(__dirname, '../favicon.ico'),
+ path.join(outDir, 'favicon.ico'),
+ );
return outDir;
}
diff --git a/packages/docs/static/img/favicon.ico b/packages/docs/static/img/favicon.ico
deleted file mode 100644
index c01d54bcd3..0000000000
Binary files a/packages/docs/static/img/favicon.ico and /dev/null differ