Giter VIP home page Giter VIP logo

Comments (5)

F-loat avatar F-loat commented on June 14, 2024 2

这样配置下就可以了,pages.js 里是支持引用其他文件的,具体格式你可以自己再处理,只要保证最后导出的是这样就可以

// pages.js
module.exports = [
  {
    path: 'packageA/news/detail',
    subPackage: true
  }
]

from mpvue-entry.

F-loat avatar F-loat commented on June 14, 2024

这个目前应该可以实现吧,path 属性就是 entry 的 key,不过实际上分包意义不大,因为目前的配置下,所有的公共代码还是会打包在一个文件里,所以没有对分包做专门的支持,等 mpvue 优化了这块之后再看需不需要处理下

from mpvue-entry.

F-loat avatar F-loat commented on June 14, 2024

Meituan-Dianping/mpvue#590
你可以参考下这个,我这边待会儿看看,也处理下

from mpvue-entry.

xlkit456852 avatar xlkit456852 commented on June 14, 2024

请问现在最新的entry能实现小程序的分包加载功能吗?

from mpvue-entry.

F-loat avatar F-loat commented on June 14, 2024

@xlkit456852 更新到 1.4.0 版本就可以了,用法 readme 里有具体写

from mpvue-entry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.