-
Hi, I'm posting this issue here instead at gohugos page as I was not able to reproduce the error with a plain hugo project and would appreciate your help. EDIT: this happens with flexsearch enabled - the minifcation error occurs while minifying index.js which contains the page content inside the flexsearch code. Steps to reproduceAdding a code block (with triple backticks) that contains PHP code with a block comment fails to minimize the resulting <?php
/*
* Test
*/
public function doesNotMinify():int {
return 42;
} Expected resultA successful build with JS minification. It works without minification. Actual resultThe minification fails
Environment
It works if I'm disabling only the JS minification in my configuration [minify]
disableJS = true I've also tried to update to the latest hugo version 0.94.2 but it still failed. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
See: #716 |
Beta Was this translation helpful? Give feedback.
See: #716