 <p>Make change in your gruntfile.js</p> <p>htmlmin. files.src: ['<em>.html', '{,</em>/}*.html']and </p> <p>copy.dist.files.src:[ '<em>.{ico,png,txt}', '.htaccess', '</em>.html', '{,<em>/}</em>.html', 'images/{,<em>/}</em>.{webp}', 'styles/fonts/{,<em>/}</em>.*' ]</p> <p>In this way it is working for me.</p>