Transform files using PostCSS.
$ yarn add --dev @start/plugin-lib-postcss
# or
$ npm install --save-dev @start/plugin-lib-postcss
postcss(options?: {})
plugins
– an array of PostCSS pluginssourceMaps
– boolean whether to process source maps or notparser
,stringifier
,syntax
– PostCSS options
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/')
)