Comments (9)
bower 的机制就是下载完整的代码不是吗
from weui.
使用的时候确实只需要dist/style/weui.css
,不过下载完整的文件也无妨,因为在使用的过程中,也可能会去看看example、less源码。
from weui.
@wtser 不是的,这个项目应该配置一个 bower.json。现在这样准确的说,是不支持 bower的!
from weui.
@progrape 下载这个源码的话,我的 sass/less 中使用的路径就很长了。比如我需要使用 button
就需要
@import "src/style/widget/weui_button/weui_button";
from weui.
通过bower下载下来,我们推荐直接使用dist/style/weui.css
文件,不建议自己引用源码,因为从WeUI源码到产出的css文件,有WeUI自己的构建过程,比如autoprefixer
。自己引用的话,可能会遗漏一些步骤,产生一些bug。
还有你说的“不支持bower”,并不对。如果不支持bower,你用命令bower install weui
能下载下来吗?
from weui.
@progrape 如果直接引用编译后的文件的话,那不是就算我的页面只使用了一个按钮,也需要导入整个编译后的css的43kb?
from weui.
@progrape 另外补充一下(构建过程),假设我的 autoprefixer 需要 autoprefixer({ "browsers": "> 1%" })
,就是我可能需要尽可能的支持更多的浏览器,所以我觉得用源码会好点。。。
from weui.
你需要使用源码,那现在bower不就是正好帮你下载了源码么?
from weui.
😂
from weui.
Related Issues (20)
- badge 缺少样式page__hd weui-cell__hd相关样式
- AWS 英国的云访问 企业微信API 不稳定
- 往下图标看着好奇怪 HOT 1
- dialog组件标题出现异常边框,审查元素未发现相关css样式 HOT 4
- 请问如何在小程序中使用,已经在项目中npm下载好了 HOT 1
- 开发文档在哪里 ? HOT 2
- 能否在不用react情况下使用原生js来使用weui HOT 1
- wiki怎么使用
- demo中的js框架该用哪个? HOT 1
- tabbar的示例代码和示例的效果不符 HOT 1
- 官方demo中的清空输入框图标点击后没有反应 HOT 1
- 亲,有没有类似小程序中的通讯录组件?
- weui 的主题色绿色可以配置改吗? HOT 1
- weui-icon-warn图标无法在表单校验错误时展示
- tabbar 水平条在 ipadpro12.9 inch下水平条是垂直的,如何变成水平的
- picker组件在高宽比比例较低的手机无法使用,在横屏的时候也无法选择。
- 日期选择器如何选择只显示年月?不需要显示日
- https://weui.io挂了
- Provide English documentation as if possible HOT 2
- 如何配置主题色?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weui.