#A tool used to relax your css&js merge&minify.
###use:
npm install -g optimize
###to install it in your computer.
-
merge all css and js files from base dir
-
use jshint to detect errors and potential problems with the js code
-
use jshint to detect errors and potential problems with the js code
-
use csshint to help point out problems with the CSS code
-
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
- auto merge @import css files.
- auto task deploy
@update:
V 0.1.6
1.add @import css consist,but only configed in config.json