Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev committed Nov 26, 2024
1 parent 1580f20 commit 5110075
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scripts/minify.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,8 @@ fs.readFile(file, "utf8", (err, data) => {
const minifiedData = data
.split("\n")
.map((line) => {
if (requiredComments.some((comment) => line.startsWith(comment))) {
return line;
}

if (startsWithComments.some((comment) => line.startsWith(comment))) {
return line;
}

if (requiredComments.some((comment) => line.startsWith(comment))) return line;
if (startsWithComments.some((comment) => line.startsWith(comment))) return line;
return line.replace(/\/\/.*/, "").trim();
})
.filter((line) => line.length > 0)
Expand Down

0 comments on commit 5110075

Please sign in to comment.