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: ['> 0.5%', 'last 2 versions', 'Firefox ESR', 'not dead']
}

⚠️ Deprecated in 1.5.1, Use a .browserslistrc config file in current or parent directories instead.

🌰 For example:

# Browsers that we support

> 0.5%
last 2 versions
Firefox ESR
not dead

styles.options

object

CSS optimisations. Defaults to:

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

CssNano Optimisations

styles.includePaths

array

New in 0.6.0

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

styles.sassOptions

object

New in 1.5.5

Node.js bindings to libsass options. Defaults to {}.

🌰 For example:

styles: {
  ext: 'scss',
  sassOptions: {
    importer: require('node-sass-glob-importer')()
  }
}

styles.lessOptions

object

New in 1.5.5

gulp-less options. Defaults to {}.

🌰 For example:

  styles: {
    ext: 'less',
    lessOptions: {
      plugins: [
        // ...
      ]
    }
  }

styles.postcssPlugins

array

New in 0.13.0

PostCSS plugins. Defaults to [].

BalmJS default postcss plugins:

styles.postcssEnvOptions

object

New in 1.1.0

PostCSS Preset Env options. Defaults to:

{
  stage: 0,
  autoprefixer: {
    flexbox: 'no-2009'
  }
}

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 ""