Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ca0a50
commit eba962e
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Troubleshooting asset-builder | ||
|
||
## bower | ||
|
||
### Some bower packages not being injected? | ||
|
||
>I have had a bit of trouble with the wiredep / bower setup as it will bring in some of my "dependencies": but not all of them. | ||
Solution: https://github.com/roots/roots/issues/1313#issuecomment-73735184 | ||
|
||
Some bower packages do not have the correct metadata. To be automatically injected a bower package needs the "main" property defined in its bower.json. You can either | ||
|
||
- Pull request the repo and add the correct metadata. | ||
- Use the [unofficial "overrides" option](https://github.com/ck86/main-bower-files#overrides-options) in bower.json | ||
```js | ||
{ | ||
"overrides": { | ||
"BOWER-PACKAGE": { | ||
"main": { | ||
"development": "file.js", | ||
"production": "file.min.js", | ||
} | ||
} | ||
} | ||
} | ||
``` |