New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bytedance/mona

Package Overview
Dependencies
Maintainers
0
Versions
380
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bytedance/mona

Merchant app's developing and building tools

  • 0.3.39
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
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

Package last updated on 21 Jan 2025

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc