Add a WebM and MP4 loader to the default Webpack config #68
Comments
I can't work out how to extend the default config to get this working in the mean time. Having little experience with Within my project, in module.exports = {
webpack: {
config: {
module: {
loaders: [{
test: /\.(webm|mp4)$/,
loader: 'file'
}]
}
}
}
} In const WebpackIsomorphicToolsPlugin = require('webpack-isomorphic-tools/plugin')
module.exports = {
assets: {
videos: {
extensions: ['webm', 'mp4'],
parser: WebpackIsomorphicToolsPlugin.url_loader_parser
}
}
} None of the videos make it in to the |
After spending 5 hours on this, what seems to work is adding
I don't know why this is necessary because that line already exists in the defaults being extended. |
@jaydenseric this is because That said, I agree that video is a common use case and I see no harm in adding this to both default configurations. Should this also accept any other video extensions? |
@jaydenseric I've added your suggestions with |
Greate! Upgraded, removed the video config and everything works. Another video format is Would it be possible to allow configuring the Thanks for all your hard work on this project! Seriously great stuff. |
@jaydenseric A good point that. Currently universal-redux.config.js is picked up automatically while the other two are not (and require configuration via a path in |
HTML5 videos are mainstream now, I find myself using videos every project.
The text was updated successfully, but these errors were encountered: