Skip to content

grantCHG/htmltag-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

htmltag-webpack-plugin

说明

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

安装

   npm install htmltag-webpack-plugin --save

使用

    
    plugins = [
        new HtmlTagWebpackPlugin({
        appendTag: /\<\s*!DOCTYPE html[^>]*\>/,
        insertTag: /\<\s*\/body[^>]*\>/,
        beginTag: "<!--kugoubegin-->",
        endTag: "<!--kugouend-->"
    })
    ]

About

add <!--xxx--> tag for html

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published