1.0.2 • Published 3 years ago

@friendlyjesse/uni-extract v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

使用

npm i @friendlyjesse/uni-extract

第一步,添加配置文件

在项目根目录加入.router.json配置文件

{
  "input": "./pages.json",
  "output": "./router/pages.json",
  "exclude": [
    "style"
  ]
}

exclude排除字段,不再生成

第二步,在package.json中添加script运行项

"scripts": {
  "router": "router ./.router.json"
}

第三步,运行

npm run router