In PopRestStore-> build.gradle, in task combineBaseJs ,The line
destFile.append(file(it).getText("UTF-8"))
should be
destFile.append(file(it).getText("UTF-8"), "UTF-8")
Otherwise on windows, the created combined.js file would be encoded in ANSI, then cause minifyCombined task fails with error:
PS D:\MoquiDemo-3.0.0> .\gradlew run
> Task :runtime:component:PopRestStore:minifyCombined
ERROR - [JSC_READ_ERROR] Cannot read file D:/MoquiDemo-3.0.0/runtime/component/PopRestStore/screen/store/components/combined.js: Failed to read: D:\MoquiDemo-3.0.0\runtime\component\PopRestStore\screen\store\components\combined.js, is this input UTF-8 encoded?
1 error(s), 0 warning(s)
Error: Cannot read file D:/MoquiDemo-3.0.0/runtime/component/PopRestStore/screen/store/components/combined.js: Failed to read: D:\MoquiDemo-3.0.0\runtime\component\PopRestStore\screen\store\components\combined.js, is this input UTF-8 encoded? at line -1:-1
Js Minifier: 1 error(s), 0 warning(s)```
Have a nice day