Skip to content

Commit c0e5461

Browse files
committed
Added missing loaders to default config (now supports svg and mp4/ogg file types)
1 parent 45b31f0 commit c0e5461

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
1. Asset paths are now relative (makes it easier to use bundles in subdirectories)
66
2. Removed loading problems for webpack configurations overriding (see https://github.com/newtriks/generator-react-webpack/issues/194)
7+
3. Added missing loader configuration for movies and svg file types
78

89
## 1.5.2:
910

cfg/defaults.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ function getDefaultModules() {
4747
{
4848
test: /\.(png|jpg|gif|woff|woff2)$/,
4949
loader: 'url-loader?limit=8192'
50+
},
51+
{
52+
test: /\.(mp4|ogg|svg)$/,
53+
loader: 'file-loader'
5054
}
5155
]
5256
};

0 commit comments

Comments
 (0)