Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.

start-runner/postcss

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

start-postcss

npm linux build windows build coverage deps

PostCSS task for Start.

Install

npm install --save-dev start-postcss
# or
yarn add --dev start-postcss

Usage

import start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import clean from 'start-clean';
import read from 'start-read';
import less from 'start-less';
import postcss from 'start-postcss';
import rename from 'start-rename';
import write from 'start-write';

import autoprefixer from 'autoprefixer';

export const build = () => start(reporter())(
  files('build/'),
  clean(),
  files('lib/**/*.less'),
  read(),
  less({ sourceMap: true }),
  postcss([ autoprefixer ], { map: true }),
  rename(file => file.replace(/\.less$/, '.css')),
  write('build/')
);

This task relies on [{ path, data, map }] input and provides the same, see documentation for details.

Arguments

postcss(plugins, options)