Skip to content
include npm installed sources in brunch vendor output.
CoffeeScript JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
src
test
.editorconfig
.gitignore
.npmignore
.travis.yml
Gruntfile.coffee
README.md
package.json

README.md

Build Status

npm-vendorize-brunch

Include npm sources in your brunch vendor output.

If you put, eg

  "dependencies":  {
    "dc": "> 1.0.0"
  }

NPM will install the browser client dc.js in node\_modules, and it'd be nice to have a way to include npm installed sources in the compiled brunch output.

config.coffee

exports.config =
  plugins:
    vendorize:
      dc:
        include: 'dc.js'

This plugin passes 'dc/dc.js' to require.resolve, and returns the result to brunch via the plugin include method.

Very crude, but seems to work for npm sources that have a compiled file that is ready for minification/include.

Usage

Add "npm-vendorize-brunch": "x.y.z" to package.json of your brunch app. Add config as shown above.

Something went wrong with that request. Please try again.