@remotion/enable-scss
This package provides a Webpack override for enabling SCSS/SASS with Remotion..
Installation
Install @remotion/enable-scss
as well as TailwindCSS dependencies.
- npm
- yarn
- pnpm
- bun
npm i --save-exact @remotion/enable-scss@4.0.239 sass@1.77.2 sass-loader@14.2.1 css-loader@5.2.7
npm i --save-exact @remotion/enable-scss@4.0.239 sass@1.77.2 sass-loader@14.2.1 css-loader@5.2.7
pnpm i @remotion/enable-scss@4.0.239 sass@1.77.2 sass-loader@14.2.1 css-loader@5.2.7
pnpm i @remotion/enable-scss@4.0.239 sass@1.77.2 sass-loader@14.2.1 css-loader@5.2.7
bun i @remotion/enable-scss@4.0.239 sass@1.77.2 sass-loader@14.2.1 css-loader@5.2.7
bun i @remotion/enable-scss@4.0.239 sass@1.77.2 sass-loader@14.2.1 css-loader@5.2.7
yarn --exact add @remotion/enable-scss@4.0.239 sass@1.77.2 sass-loader@14.2.1 css-loader@5.2.7
yarn --exact add @remotion/enable-scss@4.0.239 sass@1.77.2 sass-loader@14.2.1 css-loader@5.2.7
Also update
remotion
and all `@remotion/*`
packages to the same version.Remove all
^
character in front of the version numbers of it as it can lead to a version conflict.warning
Pay attention to install exactly these versions.
Newer versions may not work.
Usage
Override the Webpack config by using enableScss()
.
remotion.config.tsts
import {Config } from '@remotion/cli/config';import {enableScss } from '@remotion/enable-scss';Config .overrideWebpackConfig ((currentConfiguration ) => {returnenableScss (currentConfiguration );});
remotion.config.tsts
import {Config } from '@remotion/cli/config';import {enableScss } from '@remotion/enable-scss';Config .overrideWebpackConfig ((currentConfiguration ) => {returnenableScss (currentConfiguration );});