Skip to content

Commit

Permalink
Merge pull request #4260 from Brian-McBride/patch-1
Browse files Browse the repository at this point in the history
Fix broken SVGs -  issue #4066 / #4180
  • Loading branch information
ndelangen authored Oct 3, 2018
2 parents e529cd9 + fa1e1b7 commit 5bf4acd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/core/src/server/config/webpack.config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 5bf4acd

Please sign in to comment.