start-runner / clean-css

:symbols: CleanCSS task for Start

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

start-clean-css

npm linux build windows build coverage deps

CleanCSS task for Start.

Install

npm install --save-dev start-clean-css
# or
yarn add --save-dev start-clean-css

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 rename from 'start-rename';
import cleanCSS from 'start-clean-css';
import write from 'start-write';

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

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

Arguments

cleanCSS(options)

  • optionsCleanCSS options, { rebase: false, sourceMapInlineSources: true } by default

About

:symbols: CleanCSS task for Start

License:MIT License


Languages

Language:JavaScript 100.0%