nikku / karma-browserify

A fast Browserify integration for Karma that handles large projects with ease
MIT License
321 stars 49 forks source link

Standalone #145

Closed garygreen closed 9 years ago

garygreen commented 9 years ago

Is it possible to configure standalone?

--standalone -s Generate a UMD bundle for the supplied export name. This bundle works with other module systems and sets the name given as a window global if no module system is found.

bendrucker commented 9 years ago

Other than a list of options that are handled specially, everything is passed to browserify

https://github.com/nikku/karma-browserify/blob/c32def32d076ea7335f63933152f4b40354f8cdb/lib/bro.js#L176

axelpale commented 8 years ago

See available options and their values here: https://github.com/substack/node-browserify#browserifyfiles--opts

Example:

browserify: {
    debug: true,
    standalone: mylib
}

However, I have no idea where the file mylib.js will be stored.