Skip to content

Commit 719587b

Browse files
authored
Merge pull request #180 from abcnews/drzax-patch-2
Add example for including dependencies in the webpack build
2 parents 6af4353 + b8f5eef commit 719587b

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,26 @@ You _could_ also specify `type` (`"ftp"`/`"ssh"`), `host`, `port`, `username` &
152152

153153
Aunty comes with a few basic generators. Run `aunty generate --help` for the full list, or `aunty generate <generator> --help` for further details.
154154

155+
### Including dependencies
156+
157+
Sometimes you will want webpack to build specific dependencies along side your project code, for example, when a dependency is distributed with non-javascript modules like Typescript or Svelte components.
158+
159+
To instruct webpack to include those dependencies during build add the dependency's name to the `build::includeDependencies` array in your aunty config. For example:
160+
161+
```
162+
// package.json
163+
...
164+
"aunty": {
165+
"type": "svelte",
166+
"build": {
167+
"includedDependencies": [
168+
"layercake"
169+
]
170+
}
171+
}
172+
...
173+
```
174+
155175
## Authors
156176

157177
- Colin Gourlay

0 commit comments

Comments
 (0)