browserify-swap
browserify-swap copied to clipboard
Is it supposed to bundle the aliased file itself or need I?
Hey,
Trying to use browserify-swap to set up development config and replace my default ./config/index.json with ./config/development.json.
Given the following config in package.json:
{
"browserify-swap": {
"development": {
"./config/index.json": "./config/development.json"
}
}
}
Given the following code:
var Config = require("../config")
And calling the Browserify binary with --transform browserify-swap, I do see a require referencing the development.json file, but with a full system path (/Users/.../config/development.json). However nothing adds the development.json file to the bundle. Need I do that explicitly with --require ./config/development.json or should Browserify do it automatically?
Thanks!