adamlui / minify.js

</> Recursively minify all JavaScript files.
https://minify-js.org
Other
5 stars 1 forks source link

Minifying while maintaining filename #13

Closed yusuphwickama closed 2 months ago

yusuphwickama commented 4 months ago

Hello.

I love this project. I'm having a challenge, however. How can I minify my file without changing the name to include ".min.js"?

I want the script to go through a folder and replace all files with the minified version. That part I've already figured out, but now I want to remove the ".min.js" and just make it ".js"

adamlui commented 4 months ago

Hey @yusuphwickama thanks for loving it! You just want it so you can use CLI w/ a flag like --no-filename-change to output /file.js to /min/file.js instead of /min/file.min.js?

Also how did you find the project?

adamlui commented 4 months ago

@yusuphwickama I added the --no-filename-change CLI option to v1.8.0, can you update and tell me will it meet your need?

If project dependency, from project root:

npm update @adamlui/minify.js --save

If global installation, from anywhere:

npm update -g @adamlui/minify.js