algolia / algoliasearch-wordpress

❌🗑🙅‍♂️ Algolia Search plugin for WordPress is no longer supported. Please use our API client guide instead
https://www.algolia.com/doc/integration/wordpress/getting-started/quick-start/
GNU General Public License v2.0
358 stars 114 forks source link

Serve the autocomplete css (algolia-autocomplete.css) minified #764

Open andizer opened 6 years ago

andizer commented 6 years ago

What did you expect to happen?

The CSS file being served minified. When served minified, the page will be loaded a little bit faster.

What happened instead?

The CSS file is not minified.

How can we reproduce this behaviour?

Open the CSS file served on the frontend and see it is not minified.

Can you provide a link to a page which shows this issue? N/A

Technical info

rayrutjes commented 6 years ago

Indeed, the file is not minified: https://github.com/algolia/algoliasearch-wordpress/blob/master/includes/class-algolia-plugin.php#L155

We would need to add that to the build process.

Feel free to submit a PR. Happy to move this forward.