From 59eb69c412294e4ce412ea9c1dfb47d5c0c27721 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 23 Jul 2019 11:32:20 -0400 Subject: [PATCH] feat(@embark/site): add docs on filteredFields --- site/source/docs/contracts_configuration.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/site/source/docs/contracts_configuration.md b/site/source/docs/contracts_configuration.md index c7c064cd3..3451556e9 100644 --- a/site/source/docs/contracts_configuration.md +++ b/site/source/docs/contracts_configuration.md @@ -354,7 +354,16 @@ To reduce the size of the contract JSON files that are included in the build dir When set to `true`, Embark will not put te bytecode, gas estimates and other big configurations in the JSON file. ``` -minimalContractSize: true +minimalContractSize: true, +``` + +You can also have more control over the filtering by adding a `filteredFields` array. In the array, you can add the name of the fields you want to filter out. +This is useful for when you want to reduce the size of the contract files, but might still need a certain field, or if you want to filter even more aggressively. +Note that you need to have `minimalContractSize` set to `true`. + +``` +minimalContractSize: true, +filteredFields: ['runtimeBytecode', 'realRuntimeBytecode'] // This will filter out only runtimeBytecode and realRuntimeBytecode ```