@megalo/entry
解析配置在 `main.js` 或者 `App.vue` 中的 [小程序全局配置](https://developers.weixin.qq.com/miniprogram/dev/framework/config.html#%E5%85%A8%E5%B1%80%E9%85%8D%E7%BD%AE)并生成webpack所需要的entry键值对
Last updated a year ago by xsasadasdasdasd .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @megalo/entry 
SYNC missed versions from official npm registry.

megalo-entry

解析配置在 main.js 或者 App.vue 中的 小程序全局配置并生成webpack所需要的entry键值对

单独使用

# npm i @megalo/entry -D
const entryPath = 'main.js或者App.vue文件路径'
const { pagesEntry, getSubPackagesRoot } = require('@megalo/entry')

pagesEntry(entryPath)
getSubPackagesRoot(entryPath)

参考例子: https://github.com/megalojs/megalo-cli/blob/882229133d7d92a9398c96620b9b7bc96dda74e0/packages/%40megalo/cli-plugin-mp/index.js#L255

cli集成

megalo-cli 内部已经默认集成该库

Current Tags

  • 0.1.5                                ...           latest (a year ago)

6 Versions

  • 0.1.5                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 0
This Week 14
This Month 65
Last Day 7
Last Week 38
Last Month 78
Dependencies (4)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |