vite-plugin-php icon indicating copy to clipboard operation
vite-plugin-php copied to clipboard

The "HTML Env Replacement" feature is not work inside the <?php ?> tag

Open ian-ng opened this issue 1 year ago • 1 comments

The "HTML Env Replacement" feature is not work inside the tag.

Issue:

  • Input
// path: env/.env
VITE_ENV=development

// path: index.php
<?php $env = "%VITE_ENV%";?>
  • Output (Issue)
// path: index.php
<?php $env = "%VITE_ENV%";?>
  • Expected output
// path: index.php
<?php $env = "development";?>

ian-ng avatar May 07 '24 08:05 ian-ng

Uh, that's an interesting one since the PHP snippets are inserted post compilation 🤔 But I agree - it is definitely a nice feature to have! Will definitely look into it.

donnikitos avatar May 08 '24 00:05 donnikitos