Skip to content

Commit 673b817

Browse files
committed
add an example to the README.md
1 parent dd8301d commit 673b817

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,27 @@ obfuscator: {
6262
}
6363
```
6464

65+
This configuration will obfuscate the input files in a destination folder by keeping the original names and directories
66+
67+
```javascript
68+
obfuscator: {
69+
options: {
70+
// global options for the obfuscator
71+
},
72+
task1: {
73+
options: {
74+
// options for each sub task
75+
},
76+
files: {
77+
'dest/': [ // the files and their directories will be created in this folder
78+
'src/js/file1.js',
79+
'src/js/folder/file2.js'
80+
]
81+
}
82+
}
83+
}
84+
```
85+
6586
#### Debug protection and banner
6687

6788
Here you code will be protected against debugging and locked to the domain `www.example.com`.

0 commit comments

Comments
 (0)