Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zjhiphop/optimize
This is a tool which is used to merge&compress js/css files
https://github.com/zjhiphop/optimize
Last synced: 3 days ago
JSON representation
This is a tool which is used to merge&compress js/css files
- Host: GitHub
- URL: https://github.com/zjhiphop/optimize
- Owner: zjhiphop
- Created: 2012-01-11T07:31:09.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2017-04-18T03:11:07.000Z (over 7 years ago)
- Last Synced: 2024-10-29T01:20:06.807Z (10 days ago)
- Language: JavaScript
- Homepage: http://zjhiphop.github.com/optimize
- Size: 83 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
#A tool used to relax your css&js merge&minify.
###use:
npm install -g optimize
###to install it in your computer.## It has the fllowing features:
1. merge all css and js files from base dir
2. use jshint to detect errors and potential problems with the js code
3. use jshint to detect errors and potential problems with the js code
4. use csshint to help point out problems with the CSS code
5. build with a config json file.eg:
{
"dir":".",
"out":"build/",
"files":{
"js":[],
"css":[]
},
"lint":{
"js":true,
"css":true
},
"minify":{
"css":true,
"js":true
},
"concat":{
"css":true,
"js":true
},
"watch":{
"minify":true,
"lint":false
}
}##example:
optimize watch //this will watch all project,and build while files changed
## TODO:
1. auto merge @import css files.
2. auto task deploy@update:
V 0.1.6
1.add @import css consist,but only configed in config.json[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/zjhiphop/optimize/trend.png)](https://bitdeli.com/free "Bitdeli Badge")