mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix(videos): add @/ path alias to render script webpack config
This commit is contained in:
@@ -26,7 +26,19 @@ fs.mkdirSync(OUTPUT_DIR, { recursive: true });
|
|||||||
console.log("Bundling Remotion project...");
|
console.log("Bundling Remotion project...");
|
||||||
const bundleLocation = await bundle({
|
const bundleLocation = await bundle({
|
||||||
entryPoint: path.resolve(__dirname, "../src/index.ts"),
|
entryPoint: path.resolve(__dirname, "../src/index.ts"),
|
||||||
webpackOverride: (config) => enableTailwind(config),
|
webpackOverride: (config) => {
|
||||||
|
const tailwindConfig = enableTailwind(config);
|
||||||
|
return {
|
||||||
|
...tailwindConfig,
|
||||||
|
resolve: {
|
||||||
|
...tailwindConfig.resolve,
|
||||||
|
alias: {
|
||||||
|
...tailwindConfig.resolve?.alias,
|
||||||
|
"@": path.resolve(__dirname, "../src"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
});
|
});
|
||||||
console.log("Bundle complete.\n");
|
console.log("Bundle complete.\n");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user