@megalo/entry

    0.1.5 • Public • Published

    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 内部已经默认集成该库

    Keywords

    Install

    npm i @megalo/entry

    DownloadsWeekly Downloads

    5

    Version

    0.1.5

    License

    ISC

    Unpacked Size

    6.33 kB

    Total Files

    8

    Last publish

    Collaborators

    • dequan
    • elcarim5efil
    • fengzilong
    • zwwill
    • iuiaoin
    • zhuping.zp
    • xsasadasdasdasd
    • shenbin
    • llwanghong
    • bigdogaaa