Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 619 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 619 Bytes

tfux-deploy-replace-file

tfux-deploy-replace-file

INSTALL

npm install [-g] tfux-deploy-replace-file

USE

fis.match('**', {
    deploy: [
        fis.plugin('replace-file', {
            from: 'from/string',
            to: 'to/string' //file path
        }),
        fis.plugin('local-deliver') //must add a deliver, such as http-push, local-deliver
    ]
});

EXAMPLE

fis.match('**', {
    deploy: [
        fis.plugin('replace-file', {
            from: '__zhTranslate()',
            to: 'i18n/zh_CN.json'
        }),
        fis.plugin('local-deliver')
    ]
});