1.0.7 • Published 2 years ago

remove-native-comments v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

remove-native-comments

引入介绍(Introduction)

可以去掉非webpack的原生html项目中html,js,css,json中的各种注释和打印语句,做到页面安全,且不影响开发,开发阶段保留注释

安装方式

npm install remove-native-comments -D

使用步骤(how to use)

使用步骤

第一、 package.json 配置启动命令
# 例如
"scripts": {
    "zip": "node node_modules/remove-native-comments/index.js"
}
# 如果需要自定义压缩之后的文件名 可以再添加一个参数
"scripts": {
    "zip": "node node_modules/remove-native-comments/index.js name=xxxx"
}
# name的值为要生成后的文件夹及压缩包的名称


第二、 执行命令
# npm run zip