Recently, I started using Grunt for minifying JavaScript and CSS files and I must say, it's an incredible tool. As I delved deeper into Grunt, I discovered the uncss module, which aids in optimizing the load time and size of CSS files, especially for frameworks like Bootstrap.
I have an Angular and PHP application where classes are generated dynamically by PHP and JavaScript. When I run uncss, these CSS selectors generated by the server-side code are removed from the newly generated CSS file.
I believe that I need to install PhantomJS while setting up the uncss module for Grunt.
Is there a recommended approach to tackle this issue?