Carbon-fields: Reduce a plugin size

Created on 25 Jan 2019  路  3Comments  路  Source: htmlburger/carbon-fields

Carbon Fields: 3.0.2

The size of carbon-fields is 8.6 megabytes. Can I delete some files to reduce the size?
I am not going to use a debug and use non-minified files.

Could you tell me please what files can I delete?
Thank you for your work and a great plugin!

Most helpful comment

Hi @Roman52

You can delete the following files:

  • build/classic/core.js(1.2M)
  • build/classic/vendor.js(1.8M)
  • build/classic/metaboxes.js(255K)
  • build/gutenberg/core.js(1.2M)
  • build/gutenberg/vendor.js(111K)
  • build/gutenberg/blocks.js(158K)
  • build/gutenberg/metaboxes.js(252K)

This should reduce the size with about 5MB.

Carbon Fields is shipping with these files in order to allow using of SCRIPT_DEBUG.

All 3 comments

Hi @Roman52

You can delete the following files:

  • build/classic/core.js(1.2M)
  • build/classic/vendor.js(1.8M)
  • build/classic/metaboxes.js(255K)
  • build/gutenberg/core.js(1.2M)
  • build/gutenberg/vendor.js(111K)
  • build/gutenberg/blocks.js(158K)
  • build/gutenberg/metaboxes.js(252K)

This should reduce the size with about 5MB.

Carbon Fields is shipping with these files in order to allow using of SCRIPT_DEBUG.

Hello, @emohamed

Thank you very much for the answer.

Hello,

I noticed that if you download the zip file from:
https://github.com/htmlburger/carbon-fields/archive/development.zip
The final size is small (484kb).

So, besides deleting the files you mentioned is it possible to do something else to reduce the final size even more?

Maybe we could add something to .gitignore? Maybe the whole build folder? I don't know

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dmhendricks picture dmhendricks  路  3Comments

dmhendricks picture dmhendricks  路  3Comments

broskees picture broskees  路  4Comments

jonwaldstein picture jonwaldstein  路  3Comments

ArekZw picture ArekZw  路  4Comments