construx-browserify

1.1.1 • Public • Published

construx-browserify

Lead Maintainer: Matt Edelman

Build Status NPM version

construx plugin for JIT-compiling javascript browserified resources during development of express applications.

Requirements

This plugin requires your project to have <whatever module>@<whatever semver>.

Usage

Install

$ npm install --save-dev construx-browserify

Configure

Where you configure your construx plugins:

{
    "browserify": {
        "module": "construx-browserify",
        "files": "/js/app.js"
    }
}

Alternatively, if you have a situation where a request (/bundle.js) may actually need to map to some other entry point (/main.js), you can specify a "bundles" map as below:

{
    "browserify": {
        "module": "construx-browserify",
        "files": "**/*.js",
        "bundles": {
            "/bundle.js": {
                "src": "path:./public/main.js",
                "options": {
                    "transform": ["reactify", "require-globify"]
                }
            }
        }
    }
}

IF you specify a "bundles" map, then you MUST add an entry for any file you wish to transform.

Note: See construx README for general usage of construx

Package Sidebar

Install

npm i construx-browserify

Weekly Downloads

2

Version

1.1.1

License

Apache 2.0

Last publish

Collaborators

  • grawk
  • lmarkus