Skip to content

Commit 47f1341

Browse files
authored
feat: support audio src in transformAssetUrls option by default (#72)
fix issues like vuejs/vue-cli#4792 and nuxt/docs#1256
1 parent ed44d6f commit 47f1341

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ interface TemplateCompileOptions {
7777
// Transform asset urls found in the template into `require()` calls
7878
// This is off by default. If set to true, the default value is
7979
// {
80+
// audio: 'src',
8081
// video: ['src', 'poster'],
8182
// source: 'src',
8283
// img: 'src',

lib/templateCompilerModules/assetUrl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export interface AssetURLOptions {
77
}
88

99
const defaultOptions: AssetURLOptions = {
10+
audio: 'src',
1011
video: ['src', 'poster'],
1112
source: 'src',
1213
img: 'src',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy