Giter Club home page Giter Club logo

Comments (9)

wtser avatar wtser commented on May 27, 2024

bower 的机制就是下载完整的代码不是吗

from weui.

progrape avatar progrape commented on May 27, 2024

使用的时候确实只需要dist/style/weui.css,不过下载完整的文件也无妨,因为在使用的过程中,也可能会去看看example、less源码。

from weui.

Samlv9 avatar Samlv9 commented on May 27, 2024

@wtser 不是的,这个项目应该配置一个 bower.json。现在这样准确的说,是不支持 bower的!

from weui.

Samlv9 avatar Samlv9 commented on May 27, 2024

@progrape 下载这个源码的话,我的 sass/less 中使用的路径就很长了。比如我需要使用 button 就需要

@import "src/style/widget/weui_button/weui_button";

from weui.

progrape avatar progrape commented on May 27, 2024

通过bower下载下来,我们推荐直接使用dist/style/weui.css文件,不建议自己引用源码,因为从WeUI源码到产出的css文件,有WeUI自己的构建过程,比如autoprefixer。自己引用的话,可能会遗漏一些步骤,产生一些bug。

还有你说的“不支持bower”,并不对。如果不支持bower,你用命令bower install weui能下载下来吗?

from weui.

Samlv9 avatar Samlv9 commented on May 27, 2024

@progrape 如果直接引用编译后的文件的话,那不是就算我的页面只使用了一个按钮,也需要导入整个编译后的css的43kb?

from weui.

Samlv9 avatar Samlv9 commented on May 27, 2024

@progrape 另外补充一下(构建过程),假设我的 autoprefixer 需要 autoprefixer({ "browsers": "> 1%" }),就是我可能需要尽可能的支持更多的浏览器,所以我觉得用源码会好点。。。

from weui.

progrape avatar progrape commented on May 27, 2024

你需要使用源码,那现在bower不就是正好帮你下载了源码么?

from weui.

Samlv9 avatar Samlv9 commented on May 27, 2024

😂

from weui.

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.