0.1.2 • Published 7 years ago
au-fis3 v0.1.2
au-fis3
安装
npm install au-fis3 -g
配置
module.exports = function(tiny){
tiny.setOption({
// root: './src', // release 构建,入口文件根目录(不设置时默认为 env.cmd路径)
dest: './dist/', //输出目录 ,root 等于 dest 会直接修改源文件(不推荐)
clean: true, //au-fis-conf.js 文件有改动时必须清除缓存(推荐设为真,每次构建自动清除)
relativePath: true, //为真时保留相对地址
md5Query: 'v', //查询的名字,如 v = 文件哈希
noVersionLog: false, //为真时,输出no version日志
isDelDest: true, //为真且root!=dest时,删除输出目录
config: function(fis) {
/*
示例:
fis.match('*.{js,css}', {
useQuery: 'hash'// 值为 'hash'时,v=文件哈希 ,值为 ''时,v=值 删除
});
fis.match('image', {
useQuery: 'hash'
});*/
}
});
};
使用
au-fis3 release [media]
fis
更多fis配置参看fis3 https://github.com/fex-team/fis3