Pon task to compile css
$ npm install pon-task-css --save
'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()
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 |
Define task to minify css files
Param | type | Description |
---|---|---|
src | string|string[] | Source file names |
dest | string | Destination file name |
options | Object | Optional settings |
This software is released under the Apache-2.0 License.