Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for including dependencies in the webpack build #180

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,26 @@ module.exports = {
};
```

### Including dependencies

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.

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:

```
// package.json
...
"aunty": {
"type": "svelte",
"build": {
"includedDependencies": [
"layercake"
]
}
}
...
```

## Authors

- Colin Gourlay ([[email protected]](mailto:[email protected]))
Expand Down