Closed nadyshalaby closed 12 months ago
Could you please share the code which breaks Minify?
@coderaiser Please follow up me here.
Could you please decrease to smallest possible count of lines (10-20 lines maximum), so identification of problem could be possible.
No need i switched to another library ugilfy-js and csso
So you have a crash of Minify or issue with quotes? Why do you want double quotes in minified code? There is configuration option in @putout/printer but why do you need it?
Looks like the problem with line containing __
:
__(response.flat_rate_service_price.car_type) +
Please avoid using __
since this is a part of 🦎PutoutScript which is used for minification.
Renaming this identifier fixes all the things:
Just fixed issue related to single quotes in @putout/minify v2.8.0
🎉 .
But __
should be renamed in your source, since this is design choice of 🐊Putout plugins API.
Is it works for you?
I use
minify
as a command line tool to minify all of my js/css files using vscode built-in file watcher.Senario:
I have js file and i want to minify it on file change by running this command
minify /path/to/app/assets/js/ajaxdata-processor.js > /path/to/app/assets/js/ajaxdata-processor.min.js
OS
Expected Behaviour
Actual Result
I got this error when i used
10.5.2
version but when i downgraded to9.2.0
it worked fine.