Merge pull request #1224 from kunsam/dev

add video file-loader
This commit is contained in:
Sébastien Chopin 2017-08-03 10:37:49 +02:00 committed by GitHub
commit a9b5c59c53
1 changed files with 7 additions and 0 deletions

View File

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