🎥 Make videos programmatically with React
Tweak enable-tailwind & enable-skia guidance on further configuration changes
Rob Jackson2eea2a8dc504
diff --git a/packages/docs/docs/skia/enable-skia.md b/packages/docs/docs/skia/enable-skia.mdindex 8cffd7bcb7..3e439a7372 100644--- a/packages/docs/docs/skia/enable-skia.md+++ b/packages/docs/docs/skia/enable-skia.md@@ -26,12 +26,11 @@ import { Config } from "remotion";import { enableSkia } from "@remotion/skia/enable";Config.overrideWebpackConfig((currentConfiguration) => {- const newConfig = enableSkia(currentConfiguration);+ return enableSkia({+ ...currentConfiguration,- return {- ...newConfig,// Make other changes- };+ });});```diff --git a/packages/docs/docs/tailwind/enable-tailwind.md b/packages/docs/docs/tailwind/enable-tailwind.mdindex e4a4024e1c..5889d2a46f 100644--- a/packages/docs/docs/tailwind/enable-tailwind.md+++ b/packages/docs/docs/tailwind/enable-tailwind.md@@ -26,12 +26,11 @@ import { Config } from "remotion";import { enableTailwind } from "@remotion/tailwind";Config.overrideWebpackConfig((currentConfiguration) => {- const newConfig = enableTailwind(currentConfiguration);+ return enableTailwind({+ ...currentConfiguration,- return {- ...newConfig,// Make other changes- };+ });});```diff --git a/packages/example/src/webpack-override.ts b/packages/example/src/webpack-override.tsindex 0597ed205c..92c14f048a 100644--- a/packages/example/src/webpack-override.ts+++ b/packages/example/src/webpack-override.ts@@ -6,8 +6,6 @@ type Bundler = 'webpack' | 'esbuild';const WEBPACK_OR_ESBUILD = 'esbuild' as Bundler;export const webpackOverride: WebpackOverrideFn = (currentConfiguration) => {- const configWithTailwind = enableTailwind(currentConfiguration);-const replaced = (() => {if (WEBPACK_OR_ESBUILD === 'webpack') {const {replaceLoadersWithBabel} = require(path.join(@@ -18,12 +16,12 @@ export const webpackOverride: WebpackOverrideFn = (currentConfiguration) => {'node_modules','@remotion/babel-loader'));- return replaceLoadersWithBabel(configWithTailwind);+ return replaceLoadersWithBabel(currentConfiguration);}- return configWithTailwind;+ return currentConfiguration;})();- return {+ return enableTailwind({...replaced,module: {...replaced.module,@@ -58,5 +56,5 @@ export const webpackOverride: WebpackOverrideFn = (currentConfiguration) => {lib: path.join(process.cwd(), 'src', 'lib'),},},- };+ });};