Methods
# static async(callback)
return Asynchronous function (Promise)
Parameters:
Name | Type | Description |
---|---|---|
callback |
# static browserify(filename)
transform *.browserify to .js
Parameters:
Name | Type | Description |
---|---|---|
filename |
filepath |
# static compileLESS(from, to)
Compile LESS to CSS
Parameters:
Name | Type | Description |
---|---|---|
from |
less path file |
|
to |
to css path file |
Example
compileLESS('src/test.less', 'dist/test.css')
# static composer(dir, type)
Composer
Parameters:
Name | Type | Description |
---|---|---|
dir |
directory has composer.json |
|
type |
# static minCSS(file, callback)
minify css to *.min.css version
Parameters:
Name | Type | Default | Description |
---|---|---|---|
file |
|||
callback |
null |
# static minify_folder(folder)
Minify all js file to format *.min.js
Parameters:
Name | Type | Description |
---|---|---|
folder |
string |
# static normalize(path) → {string|null}
format path to unix path
Parameters:
Name | Type | Description |
---|---|---|
path |
string |
string
|
null
# static scss(filename)
Compile filename.scss to filename.css and filename.min.css
Parameters:
Name | Type | Description |
---|---|---|
filename |