Skip to content

Instantly share code, notes, and snippets.

@dazld
Created March 18, 2018 10:56
Show Gist options
  • Save dazld/bbd56e7eb2d97b25a8dd082bea1c08ae to your computer and use it in GitHub Desktop.
Save dazld/bbd56e7eb2d97b25a8dd082bea1c08ae to your computer and use it in GitHub Desktop.
find multiple entry points and build a bundle into the directory of each
build:
@find . -name "index.js" -not -path "*/node_modules/*" | xargs -I @@ bash -c '{ browserify @@ -o `dirname "@@"`/bundle.js; }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment