diff --git a/lib/builder/webpack/base.config.js b/lib/builder/webpack/base.config.js index b3cc5e4358..1fb09689e0 100644 --- a/lib/builder/webpack/base.config.js +++ b/lib/builder/webpack/base.config.js @@ -106,7 +106,10 @@ export default function webpackBaseConfig ({ isClient, isServer }) { }, { test: /\.(webm|mp4)$/, - loader: 'file' + loader: 'file', + query: { + name: 'videos/[name].[hash:7].[ext]' + } } ] },