Socket
Socket
Sign inDemoInstall

@bytedance/mona

Package Overview
Dependencies
283
Maintainers
8
Versions
359
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @bytedance/mona

Merchant app's developing and building tools


Version published
Weekly downloads
418
decreased by-29.03%
Maintainers
8
Install size
98.7 kB
Created
Weekly downloads
 

Readme

Source

@bytedance/mona

对外暴露提供构建时API

配置创建

createProjectConfig

创建项目配置,mona.config.ts中使用

例子
// mona.config.ts
import { createProjectConfig } from '@bytedance/mona';
export default createProjectConfig({
  projectName: 'demo',
  input: './src/app.tsx',
  output: 'dist'
})
参数说明
参数说明是否必填类型默认值
projectName应用/插件名称string-
input入口文件路径string-
output打包后的文件目录路径string-
raw定义函数来修改webpack配置(options: any) => any-
dev用来修改本地服务配置string{ port: 9999 }

createAppConfig

创建应用配置,app.config.ts中使用

例子
// app.config.ts
import { createAppConfig } from '@bytedance/mona';
export default createAppConfig({
  pages: [
    'pages/Home/index',
    'pages/Info/index',
    'pages/List/index'
  ]
})
参数说明
参数说明是否必填类型默认值
pages页面路径string[]-

默认pages的第一项为首页

createPageConfig

创建页面配置,需在每个页面目录的page.config.ts中使用

例子
// page.config.ts
import { createPageConfig } from '@bytedance/mona';
export default createPageConfig({
  navigationBarTitleText: 'page title'
})
参数说明
参数说明是否必填类型默认值
navigationBarTitleText当前页面标题string-

FAQs

Last updated on 11 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc