Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Commit

Permalink
Add svg support
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Feb 14, 2017
1 parent 6b2802a commit aaad21c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ function start(cliOptions) { // eslint-disable-line complexity
query: {
name: filename.static
}
},
{
test: /\.(svg)(\?.*)?$/,
loader: 'file-loader',
query: {
name: filename.static
}
}
].concat(loaders.styleLoaders(cssOptions))
},
Expand Down Expand Up @@ -249,7 +256,7 @@ function start(cliOptions) { // eslint-disable-line complexity
if (typeof options.webpack === 'function') {
webpackConfig = options.webpack(webpackConfig)
} else if (typeof options.webpack === 'object') {
webpackConfig = webpackMerge(webpackConfig, options.webpack)
webpackConfig = webpackMerge.smart(webpackConfig, options.webpack)
}

const server = run(webpackConfig, options)
Expand Down

0 comments on commit aaad21c

Please sign in to comment.