Back to Remotion

enableScss()

packages/docs/docs/enable-scss/enable-scss.mdx

4.0.505912 B
Original Source

available from v4.0.162

A function that modifies the default bundler configuration to make the necessary changes to support SASS/SCSS.

ts
import { Config } from "@remotion/cli/config";
import { enableScss } from "@remotion/enable-scss";

Config.overrideBundlerConfig((currentConfiguration) => {
  return enableScss(currentConfiguration);
});

If you want to make other configuration changes, you can do so by doing them reducer-style:

ts
import { Config } from "@remotion/cli/config";
import { enableScss } from "@remotion/enable-scss";

Config.overrideBundlerConfig((currentConfiguration) => {
  return enableScss({
    ...currentConfiguration,
    // Make other changes
  });
});

See also