Giter Club home page Giter Club logo

Comments (9)

deepak1556 avatar deepak1556 commented on June 15, 2024

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.

xixixao avatar xixixao commented on June 15, 2024

So I should ping browserify guys if they would consider adding externals to bundle()?

from gulp-browserify.

deepak1556 avatar deepak1556 commented on June 15, 2024

Are you facing scenarios where the current option of using externals not proving helpful ??

from gulp-browserify.

shuhei avatar shuhei commented on June 15, 2024

node-browserify has 3 types of options.

  1. constructor options
  2. bundle options
  3. 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.

deepak1556 avatar deepak1556 commented on June 15, 2024

I think we shld shift to A so that the plugin will be future compatible with browserify.

from gulp-browserify.

xixixao avatar xixixao commented on June 15, 2024

That would result in my proposal working, yes?

from gulp-browserify.

deepak1556 avatar deepak1556 commented on June 15, 2024

@xixixao yes it would :)

from gulp-browserify.

maelp avatar maelp commented on June 15, 2024

I'd love to have external and require treated as regular options!

from gulp-browserify.

shuhei avatar shuhei commented on June 15, 2024

It seems that external and require were supported by #38.

from gulp-browserify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.