mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-07-25 13:30:39 +08:00
Added missing loaders to default config (now supports svg and mp4/ogg file types)
This commit is contained in:
@@ -47,6 +47,10 @@ function getDefaultModules() {
|
||||
{
|
||||
test: /\.(png|jpg|gif|woff|woff2)$/,
|
||||
loader: 'url-loader?limit=8192'
|
||||
},
|
||||
{
|
||||
test: /\.(mp4|ogg|svg)$/,
|
||||
loader: 'file-loader'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user