Faker.js: shrink overall build filesize

Created on 22 May 2019  路  1Comment  路  Source: Marak/faker.js

You could easily cut the filesize down by removing https://s3.amazonaws.com/uifaces/faces/twitter/ from one of your arrays and including that portion of the URL in another variable. After looking at the minified build, I noticed that a large portion of the file was made up of a large array, each item starting with that URL path.

Most helpful comment

Yes, you could.

>All comments

Yes, you could.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kevinburke picture kevinburke  路  5Comments

AlexMiroshnikov picture AlexMiroshnikov  路  4Comments

maticzav picture maticzav  路  3Comments

marcelorl picture marcelorl  路  4Comments

JeffBeltran picture JeffBeltran  路  5Comments