realglobe-Inc / pon-task-css

Pon task to compile css

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pon-task-css

Build Status npm Version JS Standard

Pon task to compile css

Installation

$ npm install pon-task-css --save

Usage

'use strict'

const pon = require('pon')
const ponTaskCss = require('pon-task-css')

async function tryExample () {
  let run = pon({
    css: ponTaskCss('ui/stylesheets', 'pubic/css', {
      pattern: [ '*.css' ]
    })
  })

  run('css')
}

tryExample()

Signatures

define(srcDir, destDir, options) -> function

Define task to compile css files

Param type Description
srcDir string Source directory name
destDir string Destination directory name
options Object Optional settings
options.pattern string|string[] File name pattern
options.plugins function[] PostCSS plugins
options.watchDelay number Delay after watch

minify(src, dest, options) -> function

Define task to minify css files

Param type Description
src string|string[] Source file names
dest string Destination file name
options Object Optional settings

License

This software is released under the Apache-2.0 License.

Links

About

Pon task to compile css

License:Apache License 2.0


Languages

Language:CSS 96.2%Language:JavaScript 3.7%Language:Handlebars 0.1%Language:Shell 0.0%