Git Product home page Git Product logo

Comments (5)

yuanyan avatar yuanyan commented on May 22, 2024

参考脚手架,使用rax-components,build出来的代码直接就可以跑在web下,无需使用weex-html5

from rax.

Mryong avatar Mryong commented on May 22, 2024

rax脚手架现在是将所有页面打包成一个bundlejs文件,但是我们现在的需求是每个页面打包一个bundlejs,那么我就要修改默认的webpack配置,让每个页面打包成一个bundlejs,可是这些bundlejs如何在web上运行呢?难道是要用html-webpack-plugin每个页面都生成一个html吗?

from rax.

imsobear avatar imsobear commented on May 22, 2024

@Mryong 根据你的描述应该是多个页面多个 html 多个 bundlejs, 每个 html 引一个 bundlejs, 有什么问题吗?

from rax.

Mryong avatar Mryong commented on May 22, 2024

@imsobear 在用weex的时候,那里面的dmeo只需要一个html,然后利用weex-html5框架接受不同的bundlejs渲染不同的页面。按道理rax生成的bundlejs和weex-vue生成的bundlejs应该是完全一致的,那为什么weex-vue生成的bundlejs在weex-html5能运行,而rax生成的bundlejs就不能运行呢?

from rax.

yuanyan avatar yuanyan commented on May 22, 2024

@Mryong 通过weex-html5,因为多了一层架构,性能有损耗,在实际项目中我们没有基于weex-html5,因为build的出来的代码已经可以直接跑在web上了

from rax.

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.