🎥 Make videos programmatically with React
Fix SASS / SCSS docs
Jonny Burgere92c917d5e05
diff --git a/packages/docs/docs/overwriting-webpack-config.md b/packages/docs/docs/overwriting-webpack-config.mdindex fb6301214b..7bed5fdaf4 100644--- a/packages/docs/docs/overwriting-webpack-config.md+++ b/packages/docs/docs/overwriting-webpack-config.md@@ -3,6 +3,8 @@ id: webpacktitle: Custom Webpack config---+import Tabs from "@theme/Tabs";+You can customize the Webpack configuration if you have at least Version 1.1 of Remotion.Create a config file called `remotion.config.ts` in the root of your project. As a confirmation, you should get a console message `Applied configuration from [configuration-file]`.@@ -85,9 +87,35 @@ Create a file which contains `declare module '*.mdx';` in your project to fix a### Enable SASS/SCSS support-```tsx-import {Config} from 'remotion';+1. Install the following dependencies:++<Tabs+defaultValue="npm"+values={[+{ label: 'npm', value: 'npm', },+{ label: 'yarn', value: 'yarn', },+]+}>+<TabItem value="npm">++```bash+npm i sass sass-loader+```++ </TabItem>+ <TabItem value="yarn">++```bash+yarn add sass sass-loader+```++ </TabItem>+</Tabs>++2. Add the following to your [`remotion.config.ts`](/docs/config) file:++```tsxConfig.Bundling.overrideWebpackConfig((currentConfiguration) => {return {...currentConfiguration,@@ -97,12 +125,8 @@ Config.Bundling.overrideWebpackConfig((currentConfiguration) => {...(currentConfiguration.module?.rules? currentConfiguration.module.rules: []),- // Add more loaders here{- // look for .css or .scss files- test: /\.(css|scss)$/,- // in the `src` directory- include: [resolveApp('src')],+ test: /\.s[ac]ss$/i,use: [{loader: 'style-loader',@@ -124,6 +148,8 @@ Config.Bundling.overrideWebpackConfig((currentConfiguration) => {});```+3. Restart the preview server.+### Use legacy babel loaderSee [Using legacy Babel transpilation](legacy-babel).