Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: import .webmanifest assets as URL #4515

Merged
merged 1 commit into from
Aug 5, 2021
Merged

Conversation

brillout
Copy link
Contributor

@brillout brillout commented Aug 5, 2021

Leading to a slightly better DX.

/* Before this PR:
import manifest from './path/to/app.webmanifest?url'
*/
// After this PR:
import manifest from './path/to/app.webmanifest'

const manifestMetaTag = ` <link rel="manifest" href=${manifest} crossorigin="use-credentials">`

Leading to a slightly better DX when users do

```js
/* Before this PR:
import manifest from './path/to/app.webmanifest?url'
*/
// After this PR:
import manifest from './path/to/app.webmanifest'

const manifestMetaTag = ` <link rel="manifest" href=${manifest} crossorigin="use-credentials">`
```
@patak-dev
Copy link
Member

@antfu do you think we can include this one in the beta? Or should we wait to discuss with the team?

@brillout brillout changed the title Add .webmanifest to known asset types feat: import .webmanifest assets as URL Aug 5, 2021
@antfu
Copy link
Member

antfu commented Aug 5, 2021

I think it's non-controversial, we could just merge it.

@patak-dev patak-dev merged commit 8c5ac3f into vitejs:main Aug 5, 2021
aleclarson pushed a commit to aleclarson/vite that referenced this pull request Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants