I'm loading assets with file-loader in Webpack3 and everything works well for common images types but when I try to load videos (MP4, MOV ...) it seems that it can't detect those. Here's the code to load assets in my webpack.config file:
      {
        test: /\.(jpg|png|gif|svg|mp4|mov)$/,
        use: [
      {
        loader: "file-loader",
        options: {
          outputPath: "assets/"
        }
      }
    ]
  },
And in my index.html file if I add this:
  <img src='assets/file.png' alt=''/>
Everything is ok but not if I try with a video tag like :
  <video width="320" height="240" controls id='video'>
    <source src="assets/video2.mp4" type="video/mp4">
    Your browser does not support the video tag.
  </video>
Any help would be very appreciated! Thanks!