Skip to content

Commit 646579e

Browse files
committed
bugfix: ignoring js files
1 parent eb750ef commit 646579e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class WebpackObfuscator {
3232
const pluginName = this.constructor.name;
3333
compiler.hooks.emit.tap(pluginName, (compilation: compilation.Compilation) => {
3434
for (const fileName in compilation.assets) {
35-
if (fileName.toLowerCase().endsWith('.js') || this.shouldExclude(fileName)) {
35+
if (!fileName.toLowerCase().endsWith('.js') || this.shouldExclude(fileName)) {
3636
return;
3737
}
3838

0 commit comments

Comments
 (0)