I asking my first Angular-related question. Please bear with me if it has already been answered. Hopefully, you know the answer and have time to share it.
My current use case is the following:
index.php
(I have that currently working)My current issue:
Whenever I run ng build
, PHP tags in my index.php
file get converted from <?php... ?>
to <--?php... ?-->
.
Questions
Many thanks in advance. I appreciate any answers.
According to anycodings.com , a CSS optimizer causes that potential bug. The solution is to disable inlineCritical like this:
Add this option in angular.json, in each build/configuration:
"optimization": { "styles": { "inlineCritical": false } }
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.