fis3-deploy-encoding
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json

README.md

fis3-deploy-encoding

INSTALL

npm install [-g] fis3-deploy-encoding

USE

fis.match('**', {
    charset: 'gbk',
    deploy: [
        fis.plugin('encoding'),
        fis.plugin('local-deliver')
    ]
});

encoding 处理以后文本内容变为 buffer 类型,无法再进行文本 replace 操作,所以文本 replace 操作应该在转码之前