Task set for web
$ npm install pon-task-web --save
'use strict'
const pon = require('pon')
const { css, react, browser, map } = require('pon-task-web')
async function tryExample () {
let run = pon({
'ui:css': css('ui/stylesheets', 'public/css', { pattern: '*.css' }),
'ui:react': react('ui', 'shim', { pattern: '+(components|wrappers)/**/*.jsx' }),
'ui:browser': browser('ui/entrypoints', 'public/js'),
'ui:map': map('public/js', 'public/js')
})
// Run all compile and then, start watching
run('ui:*', 'ui:*/watch')
}
tryExample()
Define task
Param | type | Description |
---|---|---|
options | Object | Optional settings |
options.browser | Array | Args for pon-task-browser |
options.react | Array | Args for pon-task-react |
options.css | Array | Args for pon-task-css |
options.map | Array | Args for pon-task-map |
options.ccjs | Array | Args for pon-task-ccjs |
This software is released under the Apache-2.0 License.