Stylesheet

styles.ext

string

Supported CSS extensions: css, scss, less. Defaults to 'css'.

Default css extension for PostCSS

🌰 For example:

styles: {
  ext: 'scss'
}

styles.autoprefixer

array

Parse CSS and add vendor prefixes to rules by Can I Use. Defaults to ['last 1 version'].

Autoprefixer uses Browserslist

🌰 For example:

styles: {
  autoprefixer: ['> 1%', 'last 2 versions', 'Firefox ESR']
}

styles.options

object

CSS optimisations. Defaults to:

{
  safe: true,
  autoprefixer: false,
  discardComments: {
    removeAll: true
  }
}

🌰 For example:

styles: {
  options: {
    safe: true,
    autoprefixer: false
  }
}

styles.includePaths

array

New in 0.6.0

Ensure file's parent directory in the include path. Defaults to [].

styles.postcssPlugins

array

New in 0.13.0

PostCSS plugins. Defaults to [].

BalmJS default postcss plugins:

styles.postcssOptions

object

New in 0.13.0

PostCSS options. Defaults to {}.

styles.postcssOptions

object

New in 0.13.0

PostCSS loader options. Defaults to:

{
  exec: undefined,
  parser: undefined,
  syntax: undefined,
  stringifier: undefined,
  config: undefined,
  // plugins: [], // NOTE: Use `styles.postcssPlugins` to set.
  sourceMap: false
}

results matching ""

    No results matching ""