Skip to content

Commit

Permalink
Merge pull request #1080 from vladipus/patch-1
Browse files Browse the repository at this point in the history
An example for manual injection.
  • Loading branch information
Swiip committed Apr 25, 2016
2 parents 3e109e8 + 35f499b commit 4a266f8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,18 @@ In the `index.html` file, you'll find two types of comments, some for the build

**The key is to put your tags inside the build blocks to be part of the optimization process but outside of the inject blocks which will be overriden**.

*Example*:
```html
<!-- build:css({.tmp/serve,src}) styles/vendor.css -->
<link rel="stylesheet" href="../custom-theme/style.css">
<!-- bower:css -->
<!-- run `gulp inject` to automatically populate bower styles dependencies -->
<!-- endbower -->
<!-- endbuild -->
```

Note, that the `custom-theme` folder also needs to be added to `gulp/server.js:browserSyncInit`'s list of routes. Otherwise, it won't be loaded via server.

## Test environment configured

One of the goals of the generator is to bring to you a test environment already configured so you have only to write your tests.
Expand Down

0 comments on commit 4a266f8

Please sign in to comment.