GithubHelp home page GithubHelp logo

Comments (1)

pangxie1991 avatar pangxie1991 commented on May 8, 2024

在不使用工具的情况下,
小程序不支持 node_modules,如果通过 bower 安装,只有 dist 目录会被安装下来,未压缩大概 200K
因为组件只是提供了基础常用的 UI 组件,所以完全可以通过 bower 安装组件库,一次全部引入

当然,如果考虑更好的优化的话
可以只 拷贝 你需要的组件到你的项目目录。
当然,拷贝是一件比较无语的事,用工具解决才是王道~
所以我们这段时间会自己做一个工具,根据小程序语法分析依赖,构建更小的代码包。

from vant-weapp.

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.