1.0.0 • Published 7 years ago

fis-postpackager-htmltag v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

fis-postpackager-htmltag

说明

在HTML指定的标签前后添加指定标志

安装

   npm install fis-postpackager-htmltag -g

使用

    
    fis.match('::package', {
    postpackager: [
        fis.plugin('htmltag', {
            appendTag: /<!DOCTYPE html[^>]*\>/,
            insertTag: /<\/body[^>]*\>/,
            beginTag: "<!--kugoubegin-->",
            endTag: "<script>(function(doc){doc.getElementsByTagName('html')[0].appendChild(doc.createComment('kugouend'))}(document))</script>"
        })
    ]
});
1.0.0

7 years ago