How to use the @pluralsight/ps-design-system-build.postcss.transform function in @pluralsight/ps-design-system-build

To help you get started, we’ve selected a few @pluralsight/ps-design-system-build examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pluralsight / design-system / packages / normalize / build / index.js View on Github external
;(async _ => {
  await fs.mkdir('dist')

  const src = path.join('css', 'index.css')

  postcss.transform(src, path.join('dist', 'index.css'), [
    require('postcss-import'),
    require('postcss-cssnext')({ browsers: ['Last 2 versions', 'IE >= 11'] }),
    require('cssnano')
  ])
})()
github pluralsight / design-system / packages / core / build / index.js View on Github external
;(async _ => {
  await fs.mkdir('dist')

  const src = path.join('css', 'index.css')
  postcss.transform(src, path.join('dist', 'index.css'), [
    postcssImport,
    postcss.postcssCssVarSelectors(postcssCssVarSelectorsOptions),
    autoprefixer(autoprefixerOptions)
  ])

  postcss.transform(src, path.join('dist', 'index.module.scss'), [
    postcssImport,
    postcss.postcssCssVarSassVar(),
    autoprefixer(autoprefixerOptions)
  ])
})()