add video file-loader

This commit is contained in:
Kun Sam 2017-07-31 16:41:40 +08:00
parent 4c0db59587
commit 9f5886c91b
1 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,10 @@ export default function webpackBaseConfig ({ isClient, isServer }) {
limit: 1000, // 1 KO limit: 1000, // 1 KO
name: 'fonts/[name].[hash:7].[ext]' name: 'fonts/[name].[hash:7].[ext]'
} }
},
{
test: /\.(webm|mp4)$/,
loader: 'file'
} }
] ]
}, },