Closed thellimist closed 6 years ago
After doing some more research, this shouldn't be merged in. config.xml definetly just defines default values for configuration, and what this does is it overrides Magento's default of excluding /tiny_mce/ from minification to add CFs.
Adding both in this would work but it would also not be a good solution.
So there are one of two appropriate ways to tackle the same problem:
UpgradeData
file that modifies the config using ScopeConfigInterface
(not great)\Magento\Framework\View\Asset\Minification::getExcludes($contentType)
that simply adds Cloudflare's to it if the $contentType is 'js'I think Option #2 is best, as it means that if removed there are no harsh side-effects from the data, and it should play well with any other extensions that are taking any of the other approaches.
Adding both in this would work but it would also not be a good solution.
@navarr can you explain why this would not be a good solution compared to option #2?
@thellimist Another module with a similar problem could change the same default through an upgrade script, and if done poorly remove Cloudflare's change.
Additionally, it'd leave Cloudflare's change in the database even if the module is uninstalled
Looks like #72 has been merged in to "fix" this issue.
Declining because fixed in #72
@garrettgalow