@start/plugin-lib-postcss
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

🏭 plugin-lib-postcss

Transform files using PostCSS.

Install

$ yarn add --dev @start/plugin-lib-postcss

Usage

Signature

postcss(options?: {})

options

  • plugins – an array of PostCSS plugins
  • sourceMaps – boolean whether to process source maps or not
  • parser, stringifier, syntaxPostCSS options

Example

import sequence from '@start/plugin-sequence'
import find from '@start/plugin-find'
import read from '@start/plugin-read'
import postcss from '@start/plugin-lib-postcss'
import write from '@start/plugin-write'

import autoprefixer from 'autoprefixer'

export const task = () =>
  sequence(
    find('src/**/*.css'),
    read,
    postcss({
      plugins: [autoprefixer],
      sourceMaps: true
    }),
    write('build/')
  )

Package Sidebar

Install

npm i @start/plugin-lib-postcss

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

4.52 kB

Total Files

5

Last publish

Collaborators

  • fosimus
  • psxcode
  • deepsweet