fix svgo options

This commit is contained in:
Matteo Pagliazzi 2018-02-14 12:05:53 +01:00
parent adcd9a53c4
commit 2f3e6b82cf

View file

@ -98,7 +98,14 @@ const baseConfig = {
test: /\.svg$/,
use: [
{ loader: 'svg-inline-loader' },
{ loader: 'svgo-loader' },
{
loader: 'svgo-loader',
options: {
plugins: [
{removeViewBox: false},
],
},
},
],
exclude: [path.resolve(projectRoot, 'website/client/assets/svg/for-css')],
},
@ -112,7 +119,14 @@ const baseConfig = {
name: utils.assetsPath('svg/[name].[hash:7].[ext]'),
},
},
{ loader: 'svgo-loader' },
{
loader: 'svgo-loader',
options: {
plugins: [
{removeViewBox: false},
],
},
},
],
include: [path.resolve(projectRoot, 'website/client/assets/svg/for-css')],
},