Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHP コードを使用すると、yeoman で生成されたプロジェクトの grunt ビルド スクリプトが壊れます。具体的には、htmlmin タスクが中断されます。これを機能させる方法はありますか?私が最近使用した回避策は、php ブロックをコメントアウトし、後でコメント解除することでした。
grunt-contrib-html タスクは、通常の HTML でのみ実行する必要があります。
ただし、PHP タグのサポートについては、 html-minifierでチケットを開いてください。