donnikitos / vite-plugin-php

Vite's speed and tooling to preprocess PHP-files!
https://www.npmjs.com/package/vite-plugin-php
MIT License
40 stars 0 forks source link

Support wildcards in entries #4

Closed skabeche closed 10 months ago

skabeche commented 1 year ago

Hi, I'm trying wildcards and they don't work.

  plugins: [
    usePHP({
      entry: [
        "index.php",
        "partials/*.php",
      ]
    })
  ],

image

I have to define each file to make it work:

  plugins: [
    usePHP({
      entry: [
        "index.php",
        "partials/nav-top.php",
        "partials/message.php",
        "partials/footer.php",
      ]
    })
  ],

Is it possible to use wildcards in entries?

Thanks.

donnikitos commented 1 year ago

Yes as for now this feature is not supported. But it is definitely coming in the near future!