Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP breaks grunt build (htmlmin)

Tags:

gruntjs

yeoman

Using php code breaks the grunt build script of a yeoman generated project. Specifically the htmlmin task breaks. Is there a way to get this to work? A workaround I recently used was commenting out and later uncommenting php blocks.

like image 433
gang Avatar asked Aug 15 '26 20:08

gang


1 Answers

The grunt-contrib-html task should only be run on vanilla HTML.


Though feel free to open a ticket on html-minifier for PHP tag support.

like image 88
Sindre Sorhus Avatar answered Aug 17 '26 11:08

Sindre Sorhus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!