npx remotion 打包
可从 v4.0.89 获取
🌐 available from v4.0.89
在命令行上创建一个 Remotion Bundle。
等同于 bundle() Node.JS API。
🌐 Creates a Remotion Bundle on the command line.
Equivalent to the bundle() Node.JS API.
npx remotion bundle <serve-url|entry-file>?你可以将 Serve URL 或 入口点 作为第一个参数传入,否则入口点将会被 确定 。
🌐 You may pass a Serve URL or an entry point as the first argument, otherwise the entry point will be determined.
标志
🌐 Flags
--config
Specify a location for the Remotion config file.
--log
One of trace, verbose, info, warn, error.Determines how much info is being logged to the console.
Default
info.
--public-dir
Define the location of the public/ directory. If not defined, Remotion will assume the location is the `public` folder in your Remotion root.
--out-dir
Define the location of the resulting bundle. By default it is a folder called build, adjacent to the Remotion Root.
--public-pathv4.0.127
The path of the URL where the bundle is going to be hosted. By default it is /, meaning that the bundle is going to be hosted at the root of the domain (e.g. https://localhost:3000/). If you are deploying to a subdirectory (e.g. /sites/my-site/), you should set this to the subdirectory.