Search code examples
htmllaravelminifylaravel-mix

How to minify HTML with Webpack mix (not Laravel Elixir)


I use Laravel 6 and I want to minify my HTML with Webpack mix! Is there any way to achieve this?

Thanks a lot!


Solution

  • This is a webpack plugin that can minimize the HTML with HTMLMinifier for all source directory files and copy into destinations directory during the Webpack build.