Skip to content

Settings

The settings.json file in the project root directory stores the block template settings. When you initialize a block, this is the default configuration of the settings.json file.

json
{
   "name": "block",
   "id": "25cc3689-4ff9-4f99-870f-d05a76fc2193",
   "localization": {
      "current": "eng",
      "original": "",
      "langs": [
         "eng"
      ]
   },
   "browserslist": ["last 2 versions"]
}
FieldDescription
nameThe block template name. By default, it's the same as the block project directory name.
idThe unique ID of the created block.
localizationInformation about the current localization and available languages for the block template.
browserslistDefine the supported browsers for demonstrating your block. This configuration is applicable in prefixing the CSS rules and polyfilling JS. For more information, see the Browserslist configuration syntax.