Skip to content
Pon task to bundle browser script
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci
doc
example
lib
misc/mocks
test
.LICENSE.bud
.README.md.bud
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package-lock.json
package.json

README.md

pon-task-browser

Build Status npm Version JS Standard

Pon task to bundle browser script

Installation

$ npm install pon-task-browser --save

Usage

'use strict'

const pon = require('pon')
const browser = require('pon-task-browser')
const { cssModule } = browser.plugins

async function tryExample () {
  let run = pon({
    'ui:bundle': browser('ui/entrypoints.js', 'public/bundle.js', {
    })
  })

  run('ui:bundle')
}

tryExample()

Signatures

define(src, dest, options, options) -> function

Define task

Param type Description
src string Source file name
dest string Destination file name
options Object Optional settings
options.cacheDir string Cache directory path
options Object Optional settings
options.mode boolean Webpack mode
options.watchDelay number Delay after watch
options.watchIgnore string[] Pattens to ignore for watch

License

This software is released under the Apache-2.0 License.

Links

You can’t perform that action at this time.