construx plugin for JIT-compiling javascript browserified resources during development of express applications.
This plugin requires your project to have <whatever module>@<whatever semver>
.
$ npm install --save-dev construx-browserify
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