Skip to content

Commit 4a266f8

Browse files
committed
Merge pull request #1080 from vladipus/patch-1
An example for manual injection.
2 parents 3e109e8 + 35f499b commit 4a266f8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/user-guide.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,18 @@ In the `index.html` file, you'll find two types of comments, some for the build
131131

132132
**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**.
133133

134+
*Example*:
135+
```html
136+
<!-- build:css({.tmp/serve,src}) styles/vendor.css -->
137+
<link rel="stylesheet" href="../custom-theme/style.css">
138+
<!-- bower:css -->
139+
<!-- run `gulp inject` to automatically populate bower styles dependencies -->
140+
<!-- endbower -->
141+
<!-- endbuild -->
142+
```
143+
144+
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.
145+
134146
## Test environment configured
135147

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

0 commit comments

Comments
 (0)