fsk-seajs
v0.0.8
Published
fsk-seajs
Downloads
12
Readme
fsk-sea
- 模板编译
如何安装
npm install fsk-sea -g
parameter
fsk-seajs -d|--dir 设置编译路径 /a/c
fsk-seajs -e|--exec 执行编译脚本 true or false
fsk-seajs -w|--write 写入文件 true or false
fsk-seajs -b|--base 设置根目录路径 seajs id = prefix + 子路径编译成id,优先级为 base路径 > dir路径 > cwd命令执行路径
fsk-seajs --pre|--prefix http://core.h5.lietou-static.com seajs id = prefix + 子路径编译成id
cd /Library/WebServer/pics/fe/dev/a/h5/trunk && fsk-seajs -dp -e -w --pre http://a.h5.lietou-static.com
require('fsk-seajs').execseajs({ dir : dir, write : true, parseId : function(filepath){ return .....})