Skip to content

removal of browser.js in favor of browserify --standalone #3

@jakeburden

Description

@jakeburden

We may be able to remove the browser.js file and change our build steps to look more like this:

"watch:js": "watchify -s src/index.js -o dist/openshare.js -dv",
"build:js": "browserify -s src/index.js -g uglifyify | uglifyjs -cm > dist/openshare.js",

notice the -s flag and change in entry point from src/browser.js to src/index.js

from the browserify docs:

--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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions