pon-task-css

9.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i pon-task-css

Weekly Downloads

27

Version

9.0.1

License

Apache-2.0

Unpacked Size

236 kB

Total Files

30

Last publish

Collaborators

  • okunishinishi
  • realglobe