-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremotion.config.ts
More file actions
37 lines (33 loc) · 1.07 KB
/
remotion.config.ts
File metadata and controls
37 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// See all configuration options: https://remotion.dev/docs/config
// Each option also is available as a CLI flag: https://remotion.dev/docs/cli
// Note: When using the Node.JS APIs, the config file doesn't apply. Instead, pass options directly to the APIs
import { Config } from "@remotion/cli/config";
import { enableTailwind } from '@remotion/tailwind-v4';
Config.setVideoImageFormat("jpeg");
Config.setOverwriteOutput(true);
Config.overrideWebpackConfig(enableTailwind);
// Add webpack configuration for raw YAML imports
Config.overrideWebpackConfig((currentConfiguration) => {
return {
...currentConfiguration,
module: {
...currentConfiguration.module,
rules: [
...(currentConfiguration.module?.rules ?? []),
{
test: /\.ya?ml(\?raw)?$/,
type: 'asset/source',
},
],
},
resolve: {
...currentConfiguration.resolve,
fallback: {
...currentConfiguration.resolve?.fallback,
// Ignore Node.js core modules in browser build
fs: false,
path: false,
},
},
};
});