daxingplay / css-combo Goto Github PK
View Code? Open in Web Editor NEWcombo css which import other css
License: MIT License
combo css which import other css
License: MIT License
对子文件的处理过程中,路径解析有bug
@import 引入子文件的css图片相对路径未进行修改
提示说不是内部或外部命令
版本是csscombo v0.2.4 (CSS Module Compiler)
全局安装npm install -g css-combo
非常好的project!
能不能实现和gulp配合啊?
这个支持格式压缩的么?
csscombo -ic='utf-8' -oc='utf-8' 无效 生成的文件一直是gbk ,导致 中文字体 乱码失效
请问,windows下使用,css中这样的background:url(../images/ui3.3/black_bg.png) repeat;会被转换为background:url(..\images\ui3.3\black_bg.png)如何解决?
如以下css
a :nth-child(2), a :nth-child(5), a :nth-child(9) {display: none;}
压缩生成的代码为
a :nth-child(2),a:nth-child(5),a:nth-child(9){display:none}
空格被压缩,导致元素选择错误。版本为0.3.2
对比jar的压缩工具生成的代码,是没有问题的
还是会输出 [Warning] [Info]
为方便集成到其他系统, 比如Kissy Pie, 请添加 silent 配置项,输出由用户控制
背景图用base64编码,
background: url(data:image/png;base64....) no-repeat 0 0;
打包后变成这个样子
background: url(YUICSSMIN_PRESERVED_TOKEN_0) no-repeat 0 0;
比如url(//img3.taobaocdn.com/xxx.jpg)
对一些属性,比如background、font-face等有url相对路径的,需要单独进行处理,把相对路径进行替换,否则combo之后,url就作废了。
For some properties such as background, font-face and so on, they might have relative path in their values. So these paths should be replaced with correct ones after build.
HI,橘子:你好啊!
(我其实不是来提issues的,看完就删了吧。)
我们同事曾经发邮件给你,可能你没看到,于是我在这里给你留言。
我们有个项目是电子商务和云计算交叉的领域,在招募技术人才。看到你的个人信息,看能否交流一下有没有共事或技术合作的机会。我们全职,兼职,远程都有JOB提供。联系QQ: 2355679565 或通过我们的网站WWW.SHOP123.COM您了解一下。最好有机会电话沟通一下,你看方便吗?even手机13750813289 ,谢谢
能不能加上相同路径去重复的功能哪?
window 7命令行下
环境 node v0.10.28 css-combo v0.3.4
执行命令csscombo demo.source.css demo.combo.css
例:
demo.source.css源文件中图片路径
background:url(../images/ui3.3/bg_white_1.png);
在demo.combo.css目标文件中被变成
background:url(..\images\ui3.3\bg_white_1.png);
导致无法访问图片
求解决
辛苦看下,这的正则表达式是不是有些问题。
https://github.com/daxingplay/css-combo/blob/master/lib/combo.js#L274
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.