From d7bbf49cb4efd06a4e6cb9ce0b852553068f78f1 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 4 Nov 2019 20:36:57 +0800 Subject: [PATCH] feat: support audio src in `transformAssetUrls` option by default fix issues like https://github.com/vuejs/vue-cli/issues/4792 and https://github.com/nuxt/docs/pull/1256 --- README.md | 1 + lib/templateCompilerModules/assetUrl.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 471abd8..098f860 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ interface TemplateCompileOptions { // Transform asset urls found in the template into `require()` calls // This is off by default. If set to true, the default value is // { + // audio: 'src', // video: ['src', 'poster'], // source: 'src', // img: 'src', diff --git a/lib/templateCompilerModules/assetUrl.ts b/lib/templateCompilerModules/assetUrl.ts index 8838748..f375ebc 100644 --- a/lib/templateCompilerModules/assetUrl.ts +++ b/lib/templateCompilerModules/assetUrl.ts @@ -7,6 +7,7 @@ export interface AssetURLOptions { } const defaultOptions: AssetURLOptions = { + audio: 'src', video: ['src', 'poster'], source: 'src', img: 'src', 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