Closed iancallahan closed 3 years ago
Hello! Thanks for this package. This is more of a head's up for anyone else who may be experiencing this.
I have an odd set up where I'm wedging an SPA into an existing website. So my entry file is 'index.html'.
Here's the odd thing. If I use: @vite('index.html')
@vite('index.html')
I get an error: syntax error, unexpected 'index' (T_STRING), expecting ')'
syntax error, unexpected 'index' (T_STRING), expecting ')'
If I use double quotes, the string gets passed but it includes the quotes as html entities: "index.html"
"index.html"
But the following, without quotes, works like a charm: @vite(index.html)
@vite(index.html)
It's probably some peculiar thing about MacOS as I've encountered this issue running locally using Valet.
Thanks again.
@iancallahan My blade directive is including the quotes automatically, so I think the README is incorrect
Hello! Thanks for this package. This is more of a head's up for anyone else who may be experiencing this.
I have an odd set up where I'm wedging an SPA into an existing website. So my entry file is 'index.html'.
Here's the odd thing. If I use:
@vite('index.html')
I get an error:
syntax error, unexpected 'index' (T_STRING), expecting ')'
If I use double quotes, the string gets passed but it includes the quotes as html entities:
"index.html"
But the following, without quotes, works like a charm:
@vite(index.html)
It's probably some peculiar thing about MacOS as I've encountered this issue running locally using Valet.
Thanks again.