1.0.1 • Published 10 years ago
fis3-deploy-tar v1.0.1
fis3-deploy-tar
用来在 fis3 deploy 阶段用 tar 的方式打包资源。
安装插件
全局安装
npm install -g fis3-deploy-tar或者本地安装到项目所在目录。
npm install fis3-deploy-tar配置
fis.match('**', {
deploy: [
fis.plugin('tar'),
fis.plugin('local-deliver', {
to: './output'
})
]
})
// 或者
fis.match('*.tpl', {
deploy: [
fis.plugin('tar', {
filename: 'templates.tar.gz'
}),
fis.plugin('local-deliver', {
to: './output'
})
]
})配置说明
filename默认为all.tar.gz用来配置打包的文件名keep默认为false是否保留零碎文件。modified: 默认为false是否只打包上次修改过的文件。默认是所有文件都打包。