webpack config for inline icon svg (#4437)

This commit is contained in:
Jaco Greeff 2017-02-05 10:30:22 +01:00 committed by Tomasz Drwięga
parent 172b40ae30
commit 43bb862adb

View File

@ -117,8 +117,13 @@ module.exports = {
test: /\.(woff(2)|ttf|eot|otf)(\?v=[0-9]\.[0-9]\.[0-9])?$/, test: /\.(woff(2)|ttf|eot|otf)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
use: [ 'file-loader?name=fonts/[name][hash:10].[ext]' ] use: [ 'file-loader?name=fonts/[name][hash:10].[ext]' ]
}, },
{
test: /parity-logo-white-no-text\.svg/,
use: [ 'url-loader' ]
},
{ {
test: /\.svg(\?v=[0-9]\.[0-9]\.[0-9])?$/, test: /\.svg(\?v=[0-9]\.[0-9]\.[0-9])?$/,
exclude: [ /parity-logo-white-no-text\.svg/ ],
use: [ 'file-loader?name=assets/[name].[hash:10].[ext]' ] use: [ 'file-loader?name=assets/[name].[hash:10].[ext]' ]
} }
], ],