Answer the question
In order to leave comments, you need to log in
How to upload video in webpack?
I'm trying to upload a video, but webpack just inserts text but doesn't render the file, what could be causing this problem?
localhost:5000/assets/videos/2018-08-30_19-53-43.mp4
+e.SOURCE(src="../../assets/videos/2018-08-30_19-53-43.mp4", type="video/mp4")
{
test: /\.(webm|mp4)$/,
use: [
{
options: {
name: '[name].[ext]'
},
loader: 'file-loader'
}
]
}
Answer the question
In order to leave comments, you need to log in
this is a bug, there is a copy solution https://github.com/hew/hew.tools/blob/dev/webpack....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question