We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hi! I form the config for a large project kit in the following way in conjunction with envify
envify
module.exports = xtend( require('../config/__defaults/common'), require('../config/__defaults/' + process.env.stage), require('../config/' + process.env.project + '/common'), require('../config/' + process.env.project + '/' + process.env.stage) )
When i bundle project with browserify all works perfectly!
browserify
NODE_ENV=production browserify src/index.js \ -t [envify --project ${1:-'main'} --stage ${2:-'dev'}] \ -g uglifyify \ > bundle.min.js
But when i try to use this browserify configuration with budo
budo
budo src/index.js:bundle.js -P -- \ -t [envify --project ${1:-'main'} --stage ${2:-'dev'}]
budo returns me
Cannot find module '../config/__defaults/dev'
but i have this file.
So, maybe you know what i'm doing wrong?
The text was updated successfully, but these errors were encountered:
Thanks, it seems like a bug somewhere with arg/subarg parsing.
Have you tried using the API and specifying browserify: { transform: ... } } manually? It would be interesting to see if that works fine.
browserify: { transform: ... } }
Sorry, something went wrong.
Yep, i tried hardcoded needed parameters in package.json but result the same.
package.json
"browserify": { "transform": [ "aliasify", ["envify", { "project": "main", "stage": "dev" }] ] }
Interesting that after error debugger shows me this precompiled code
module.exports = xtend( require('../config/__defaults/common'), require('../config/__defaults/' + "dev"), require('../config/' + "main" + '/common'), require('../config/' + "main" + '/' + "dev") )
Seems like problem in 'dynamic require'...
No branches or pull requests
Hi! I form the config for a large project kit in the following way in conjunction with
envify
When i bundle project with
browserify
all works perfectly!But when i try to use this
browserify
configuration withbudo
budo
returns mebut i have this file.
So, maybe you know what i'm doing wrong?
The text was updated successfully, but these errors were encountered: