Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
webpackObfuscator
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
毛细亚
webpackObfuscator
Commits
a76b52aa
提交
a76b52aa
authored
11月 23, 2021
作者:
毛细亚
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新success配置
上级
b2737023
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
3 行增加
和
5 行删除
+3
-5
.gitignore
.gitignore
+1
-0
WebpackObfuscator.config.js
build/WebpackObfuscator.config.js
+2
-2
fileList.js
build/fileList.js
+0
-3
没有找到文件。
.gitignore
浏览文件 @
a76b52aa
...
...
@@ -2,4 +2,5 @@
node_modules/
dist/*
src/*/
.vscode/*
build/WebpackObfuscator.config.js
浏览文件 @
a76b52aa
...
...
@@ -9,7 +9,7 @@ module.exports = {
debugProtection
:
false
,
// 此选项几乎不可能使用开发者工具的控制台选项卡
debugProtectionInterval
:
false
,
// 如果选中,则会在“控制台”选项卡上使用间隔强制调试模式,从而更难使用“开发人员工具”的其他功能。
log
:
true
,
// 是否允许将信息记录到控制台。
disableConsoleOutput
:
fals
e
,
// 通过用空函数替换它们来禁用console.log,console.info,console.error和console.warn。这使得调试器的使用更加困难。
disableConsoleOutput
:
tru
e
,
// 通过用空函数替换它们来禁用console.log,console.info,console.error和console.warn。这使得调试器的使用更加困难。
// identifierNamesGenerator: 'mangled-shuffled', //标识符的混淆方式 hexadecimal(十六进制) mangled(短标识符) dictionary 需要与identifiersDictionary同时使用 mangled-shuffled 和 mangled 相同 但是字母会被打乱
// identifiersDictionary:['_zw_,_mxy_,_zwan_,-nzy_'],//dictionary选项设置标识符字典。字典中的每个标识符将用于几个变体,每个字符的大小写不同。因此,字典中标识符的数量应取决于原始源代码中的标识符数量。
identifiersPrefix
:
'_mxy_'
,
//全局标识符添加特定前缀,在混淆同一页面上加载的多个文件时使用此选项。此选项有助于避免这些文件的全局标识符之间发生冲突。为每个文件使用不同的前缀
...
...
@@ -24,7 +24,7 @@ module.exports = {
// splitStrings:true,//将文字字符串拆分为具有splitStringsChunkLength选项值长度的块。
// splitStringsChunkLength:0.5,//设置splitStrings选项的块长度。
stringArrayEncoding
:
[
'none'
],
stringArrayThreshold
:
0
,
stringArrayThreshold
:
0
,
stringArrayIndexShift
:
true
,
// 为所有字符串数组调用启用额外的索引移位
stringArrayShuffle
:
true
,
//随机打乱stringArray数组项。
// stringArrayWrappersCount:1,//设置string array每个根或函数作用域内部的包装器计数。每个范围内的实际包装器数量literal受此范围内节点数的限制。
...
...
build/fileList.js
浏览文件 @
a76b52aa
const
fileList
=
[
'/subpackage/main.min.js'
]
// 根目录为src文件夹
module
.
exports
=
{
fileList
,
}
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论