Skip to content
On this page

defineHerinaConfig

Create an object of Herina configuration.

This function not only ensures the typing correctness, but also adds default properties to the object from the argument.

Arguments

NameRequiredTypeDefault ValueNote
configYESHerinaConfig//

Returns

typescript
interface HerinaConfig

Example

typescript
import { defineHerinaConfig } from "@herina-rn/core";

export default defineHerinaConfig({
  environment: "production",
  baseUrl: "https://hector.im",
  root: "/Users/hectorchong/MyApp",
  entryFile: "/Users/hectorchong/MyApp/index.js",
  outputPath: "/Users/hectorchong/MyApp/dist",
  minify: false,
  platform: "ios",
  manifestPath: "/Users/hectorchong/MyApp/manifest.json"
});

Released under the MIT License.