Comments (9)
https://github.com/substack/node-browserify/blob/master/bin/args.js#L84 if i have made it as an option i would be doing something similar and logic wise i dnt think its much of a difference from what you have written. I just want the developers to use browserify options in their own way. But i am open to suggestions :)
from gulp-browserify.
So I should ping browserify guys if they would consider adding externals
to bundle()
?
from gulp-browserify.
Are you facing scenarios where the current option of using externals not proving helpful ??
from gulp-browserify.
node-browserify has 3 types of options.
- constructor options
- bundle options
- methods like external, require and etc.
I think it would be nice if we decide a guideline to handle them. Currently we do 2 and some of 3 in the first argument,1 in the second argument and the rest of 3 in prebunfle hook.
Clearer ways would be
A. Put everything in one object argument and this plugin manages the 3 types.
B. Have separate arguments for node-browserify options.1 on the second argument, 2 on the first argument and 3 on the prebundle hook.
What do you guys think?
from gulp-browserify.
I think we shld shift to A so that the plugin will be future compatible with browserify.
from gulp-browserify.
That would result in my proposal working, yes?
from gulp-browserify.
@xixixao yes it would :)
from gulp-browserify.
I'd love to have external and require treated as regular options!
from gulp-browserify.
It seems that external
and require
were supported by #38.
from gulp-browserify.
Related Issues (20)
- Drop gulp-util dependency HOT 1
- During Bundling: Error: react-router-dom/NavLink.js: Line 48: Invalid regular expression HOT 1
- Externalizing shim to config suggestion?
- debowerify seems to prevent `.external()` from working HOT 1
- 'Uncaught Error: Cannot find module 'function e(t,n,r)... HOT 4
- browserify+ coffeeify+ preprocess cannot work right.Here's my gulpfile.
- node_modules being included HOT 3
- Error: need proper browserify instance, on windows machine HOT 2
- ignore do not support the relative path
- babelify 7.2.0 doesn't work fork
- [email protected] doesn't work in gulp-browserify
- How to do files: multiple sources to new file like grunt HOT 1
- Help options transform babelify
- how can i user that module like this?
- Unexpected reserved word (mounted) for Vue.js
- 'nobuiltins' options is not working in certain circumstances
- Unexpected token => HOT 3
- 编译 报错
- Cede the package name on NPM to gulp-bro HOT 9
- ParseError: 'import' and 'export' may only appear at the top level
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-browserify.