Comments (8)
from edp.
json的直接JSON.stringify
js的用util下的compressJavascript方法就行
from edp.
我希望能添加更多的配置,默认调用compressJavascript也可以。有时候我希望指定用什么东东来压缩,yui,gcc之类的。
edp minify a.js -o a.compiled.js
edp minify --engine=default a.js -o a.compiled.js
edp minify --engine=gcc a.js -o a.compiled.js
edp minify --engine=yui a.js -o a.compiled.js
同理,css
,json
也希望有可选的参数来支持。
from edp.
貌似会依赖到 #33
from edp.
我同意扩展更多minify参数,这是理所应当的。但不建议指定压缩器。理由如下:
- 不想安装edp的时候导入其他的jar包
- 不想依赖node之外的其他环境
- 不想起一个child_process
from edp.
我也不想反驳,那就不这么做了。
from edp.
所以我们的默认压缩引擎是什么,uglify吗?投放端对体积的要求会更严格,采用closure可以在gzip后获得4-7%的何种优势……
from edp.
开搞……
from edp.
Related Issues (20)
- 如何地图markLine的线上加悬浮窗?
- [edp-build]加一个将text资源内联到js的处理器 HOT 2
- [edp-build] LESS procesor替换js文件中less依赖时,会提取依赖、去除注释、空行等
- windows上使用有路径问题
- edb web在Windows上使用路径不对 HOT 2
- edp import 不稳定 HOT 1
- edp ERROR Can not find the specified `project' command module from `edp-project' HOT 2
- [webserver]和babel 6一起用总是搞不定 HOT 6
- 对VariableSubstitution提一个小的改动,希望支持自定义边界符 HOT 1
- edp import 导入非edp项目的edp依赖 HOT 2
- 求提供一个TextInline插件 HOT 1
- resource.js里 response.removeHeader('Transfer-Encoding') 不生效
- edp test吐槽
- edp相关问题 HOT 2
- edp 怎么引入react呢?有相关的实践吗?
- edp webserver stylus 默认配置改进
- v1.2.0+ 版本build后有保留字的内容不会特殊处理
- edp ERROR Can not find the specified `project' command module from `edp-project'.
- 是否能支持 https
- 有没有考虑提供 HMR 功能呀?
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 edp.