1.1.1 • Published 8 years ago

construx-browserify v1.1.1

Weekly downloads
3
License
-
Repository
github
Last release
8 years ago

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

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago