Skip to content
This repository was archived by the owner on Sep 5, 2018. It is now read-only.
Prev Previous commit
Next Next commit
Note about brunch
  • Loading branch information
Jason Stiebs committed May 17, 2016
commit 0d13764e1624adf503f9c754ad170d017b635c5b
2 changes: 1 addition & 1 deletion bonus_guides/G_static_assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Important detail: according to the default configuration there is no ES6 support

#### JavaScript Libraries

We may need to use a JavaScript library like jQuery or underscore in our application. As we mentioned above, we could copy the libraries into `web/static/vendor`. It may be a little bit easier to use `npm` to install it: We can simply add `"jquery": ">= 2.1"` to the dependencies in the `package.json` file in our projects root and run `npm install --save`. Now we can `import $ from "jquery"` in our `app.js`.
We may need to use a JavaScript library like jQuery or underscore in our application. As we mentioned above, we could copy the libraries into `web/static/vendor`. It may be a little bit easier to use `npm` to install it: We can simply add `"jquery": ">= 2.1"` to the dependencies in the `package.json` file in our projects root and run `npm install --save`. If the `npm` section in our `brunch-config.js` has a `whitelist` property, we will also need to add "jquery" to that. Now we can `import $ from "jquery"` in our `app.js`.

#### Brunch Plugin Pipeline

Expand Down