From 04a2ffb016c85422f3ae74364b1b6da794a57a9e Mon Sep 17 00:00:00 2001 From: Clark Du Date: Fri, 3 Nov 2017 10:36:01 +0800 Subject: [PATCH] fix: video can not be loaded --- lib/builder/webpack/vue-loader.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/builder/webpack/vue-loader.config.js b/lib/builder/webpack/vue-loader.config.js index f3a2aaa4a3..f281c06fe1 100644 --- a/lib/builder/webpack/vue-loader.config.js +++ b/lib/builder/webpack/vue-loader.config.js @@ -20,6 +20,10 @@ export default function vueLoader() { }, template: { doctype: 'html' // For pug, see https://github.com/vuejs/vue-loader/issues/55 + }, + transformToRequire: { + video: 'src', + source: 'src' } }