Bedrock takes a default configuration which lives in core/discovery/config.js. You can modify the configuration with your own values in the bedrock.config.js file in the root folder.

Parent Object Sub object Possible values Effect Since
js minify true/false (Boolean) Enable or disable JS minification 1.35
css purge true/false (Boolean) Enable or disable purgeCSS 1.35
css minify true/false (Boolean) Enable or disable CSS minification 1.35
css compiler scss/postcss/ (Boolean) Choose your CSS compiler: Sass (SCSS) or PostCSS. For postcss, use files in content/postcss. For SCSS use files in content/scss. 1.35
styleguide   true/false (Boolean) Enable or disable the style guide
styleguide snippetlanguage html, pug This modifies the language snippets shown in the styleguide.
styleguide colors ./content/scss/_settings.colors.scss Path to the SCSS file specifying colors (for the color feature in the styleguide which shows the project’s colors in a visual way).
styleguide categoryOrder Example:


categoryOrder: [
  'Style guide',
Order of the documentation categories.
styleguide componentCategories Example:


componentCategories: {
  b: 'Bootstrap additions',
  bc: 'Bootstrap custom components',
  br: 'Bedrock components',
  c: 'Custom components'
Which component categories should exist.
icons generateIconFont true/false (Defaults to false) Specify whether to generate an icon font.
icons svgIconClassPrefix Example: svg-icon (String) Specify the CSS class for direct SVG icons.
icons iconFontClassPrefix Example: if (String) Specify the CSS class for icon font icons.
icons iconFontPath Example: "./content/scss/_icon-font.scss" (String) Specify the path where icon font CSS gets generated. Note that this is untested with the new PostCSS feature in 1.34.

Deprecated config items

Parent Object Sub object Possible values Effect Removed when?
icons hasSvgIcons true/false Specify whether to enable SVG icon support. 1.10
purgeCSS true/false Enable/disable purge (now part of the css object). 1.35