You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prefer go minifier, if optional go dependency is installed (default: True)
This suggests that if the go dependency is not installed, this option will do nothing. Instead, leaving this option as True causes the parsers to raise an exception from here:
If a user has a development environment that does not have the extension installed (for example, developing on windows) but still wishes to use the go extension in production, they must explicitly toggle this option based on the code environment, which isn't ideal.
Instead it would be nice if this option was ignored if the go dependency isn't found, as its description suggests it is.
In case it helps anyone else, my current workaround is:
The description for the
go
option statesThis suggests that if the go dependency is not installed, this option will do nothing. Instead, leaving this option as True causes the parsers to raise an exception from here:
flask_minify/flask_minify/parsers.py
Lines 134 to 142 in b7ce727
If a user has a development environment that does not have the extension installed (for example, developing on windows) but still wishes to use the go extension in production, they must explicitly toggle this option based on the code environment, which isn't ideal.
Instead it would be nice if this option was ignored if the go dependency isn't found, as its description suggests it is.
In case it helps anyone else, my current workaround is:
But if it suits your deploy process, you could also do the much simpler:
The text was updated successfully, but these errors were encountered: