diff --git a/lib/core/src/server/config/webpack.config.default.js b/lib/core/src/server/config/webpack.config.default.js index 3af1c9fc98fd..4e1362300e72 100644 --- a/lib/core/src/server/config/webpack.config.default.js +++ b/lib/core/src/server/config/webpack.config.default.js @@ -33,16 +33,12 @@ export function createDefaultWebpackConfig(storybookBaseConfig) { ], }, { - test: /\.(ico|jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2)(\?.*)?$/, + test: /\.(svg|ico|jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2)(\?.*)?$/, loader: require.resolve('file-loader'), query: { name: 'static/media/[name].[hash:8].[ext]', }, }, - { - test: /\.svg$/, - loader: require.resolve('svg-url-loader'), - }, { test: /\.(mp4|webm|wav|mp3|m4a|aac|oga)(\?.*)?$/, loader: require.resolve('url-loader'),