limit for inlined svg images and make home leaner by not bundling it with the rest of static pages

This commit is contained in:
Matteo Pagliazzi
2017-10-03 17:31:53 +02:00
parent 67436fbef1
commit fda4be01b8
2 changed files with 9 additions and 3 deletions

View File

@@ -105,7 +105,12 @@ const baseConfig = {
{
test: /\.svg$/,
use: [
{ loader: 'svg-url-loader' },
{
loader: 'svg-url-loader',
options: {
limit: 10000,
},
},
{ loader: 'svgo-loader' },
],
include: [path.resolve(projectRoot, 'website/client/assets/svg/for-css')],