fis3-deploy-encoding
v1.0.0
Published
fis3-deploy-encoding
Downloads
1,212
Readme
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 操作应该在转码之前