# fis3-deploy-tar **Repository Path**: mirrors_fex-team/fis3-deploy-tar ## Basic Information - **Project Name**: fis3-deploy-tar - **Description**: deploy 阶段用 tar 的方式打包资源 - **Primary Language**: Unknown - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-02-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README fis3-deploy-tar ========================== 用来在 fis3 deploy 阶段用 tar 的方式打包资源。 ## 安装插件 全局安装 ```bash npm install -g fis3-deploy-tar ``` 或者本地安装到项目所在目录。 ```bash npm install fis3-deploy-tar ``` ## 配置 ```javascript 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` 是否只打包上次修改过的文件。默认是所有文件都打包。