Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add option to copy over non-javascript files when obfuscating a folder#910

Unanswered
jmechevarria asked this question inQ&A
Discussion options

This is more like a feature request, if I should post this somewhere else, please do let me know.

Is there or could there be an option (CLI arg) to include the rest of the files in a folder when obfuscating said folder's JS files?

If a have filessrc/js/a.js,src/js/b.js andsrc/css/a.css, I'd like to be able to do something like

javascript-obfuscator src --output src-o --copy-rest

so I end up with an obfuscated version of my JS files, alongside my non-JS files.

This would be very handy when dealing with lots of files.

Thank you

You must be logged in to vote

Replies: 2 comments

Comment options

Has this ever been looked at being implemented? Need something like this

You must be logged in to vote
0 replies
Comment options

There is another npm package we can use for that :
npm install copyfiles

In package.json, add this :

"scripts": { "obfuscate": "javascript-obfuscator ./src ./dist --output ./dist", "copy-rest": "copyfiles -u 1 src/**/*.html src/* */*.css src/app/statics/** dist" }

Then you can do :
npm run-script obfuscate
npm run-script copy-rest

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
3 participants
@jmechevarria@jeff-1984@JamieGrimwood

[8]ページ先頭

©2009-2025 Movatter.jp