We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eeeed5 commit 7da2e9eCopy full SHA for 7da2e9e
template/build/vue-loader.conf.js
@@ -8,5 +8,11 @@ module.exports = {
8
? config.build.productionSourceMap
9
: config.dev.cssSourceMap,
10
extract: isProduction
11
- })
+ }),
12
+ transformToRequire: {
13
+ video: 'src',
14
+ source: 'src',
15
+ img: 'src',
16
+ image: 'xlink:href'
17
+ }
18
}
template/build/webpack.base.conf.js
@@ -58,6 +58,14 @@ module.exports = {
58
name: utils.assetsPath('img/[name].[hash:7].[ext]')
59
60
},
61
+ {
62
+ test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
63
+ loader: 'url-loader',
64
+ options: {
65
+ limit: 10000,
66
+ name: utils.assetsPath('media/[name].[hash:7].[ext]')
67
68
+ },
69
{
70
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
71
loader: 'url-loader',
0 commit comments