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

Vite's speed and tooling to preprocess PHP-files!

Results 10 vite-plugin-php issues
Sort by recently updated
recently updated
newest added

I'm having trouble getting `vite-plugin-php` to work with my Vite setup (version 5.1.4). Despite following the plugin's documentation and configuring my `vite.config.js` as shown below, it doesn't seem to function...

The "HTML Env Replacement" feature is not work inside the tag. Issue: - Input ``` // path: env/.env VITE_ENV=development // path: index.php ``` - Output (Issue) ``` // path: index.php...

The actual error here was bad config I wrote in another plugin, but it surfaced as this. This has happened with other errors as well. I am developing on windows...

When I use import in a PHP script to import another PHP script it doesn't work locally (it works after building though). I have `index.php`: ```php ``` and `config.php`: ```php...

System: Linux Mint 21.2 LAMP server with Lando based in Docker. PHP 8.1 Vite v4.5.0 Node v18.17.1 Running dev server ``` npm run dev ``` Loading autoloader from vendor folder:...

Define `vite build --watch` in package.json on scripts: ![image](https://github.com/donnikitos/vite-plugin-php/assets/17012986/d421778b-a8cb-4da4-b40d-bb95812d5047) Run the script ``` npm run watch ``` It keeps watching any change and rebuilds if it's so but it doesn't...

first of all thx for the great work! css and js are being updated while making changes. When changing the html/php the browser also reloads but the '.php-tmp' files are...

Cause the generated code looks like ```php

i can set the include_path - but __DIR__ will always be the location of router.php in node_modules/vite-plugin-php/dist so you can never have an include like ../db.php to include a file...

There are sometimes missing the correct source file in errors, as everything is fed through the router, but this mostly an issue in bigger refactorings when it's not clear where...