Myzwer / foothillschurch

Bootcamp II is a wordpress theme (as well as an inside joke) designed to suit the needs of foothillschurch.com. It makes use of webpack, Babel, Sass, Tailwind, Browsersync, PostCSS, ESLint, Stylelint, Prettier and more. It is meant for that site, but if you can use it by all means go for it.
1 stars 1 forks source link

HTML comments are in the final HTML #51

Closed rain2o closed 1 month ago

rain2o commented 1 month ago

I noticed that the comments you're leaving are in the final HTML.

Screenshot 2024-07-18 at 19 08 22

If that's what you want, then that's fine. If not, you should be able to run an HTML minimizer with webpack like you do css/js to also strip out comments. OR, you could use PHP to comment instead.

<?php /** Start Header */ ?>

won't render anything, will only be visible in the source code.

rain2o commented 1 month ago

Comments like this, FC might not appreciate those being in the rendered HTML 😄 https://github.com/Myzwer/foothillschurch/blob/effc5bbf81497ae99f0561ab7849412fe9272bfd/resources-bank.php#L62