-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optimize files - html, xml, js, json, css and svg compression using m… #1199
base: master
Are you sure you want to change the base?
Conversation
Hi !
|
As an extra question, would di you install |
Optimize HTML, XML, js, css and SVG | ||
================================== | ||
|
||
This plugin uses [minify](https://minifierr.org) to compress files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in URL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I'm not sure if it's a typo or a completely different minifier was intended here. The one in minifier.org
only claims to minify JS
and CSS
.
command, silent, verbose = COMMANDS[ext] | ||
flags = verbose if SHOW_OUTPUT else silent | ||
command = command.format(filename=filepath, flags=flags) | ||
call(command, shell=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please prefer the command
as a list of strings with shell=False
.
# '.ext': ('command {flags} {filename', 'silent_flag', 'verbose_flag') | ||
'.html': ('minify "{filename}" -o "{filename}"', '--quiet', ''), | ||
'.xml': ('minify "{filename}" -o "{filename}"', '', ''), | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't there be {flags}
somewhere here?
…inify