diff --git a/readme.md b/readme.md index 3cb87db3..6c4c1816 100644 --- a/readme.md +++ b/readme.md @@ -1088,6 +1088,21 @@ Some commonly asked for features are available as modules: *Warning: The `webpack` function is executed twice, once for the server and once for the client. This allows you to distinguish between client and server configuration using the `isServer` property* +Multiple configurations can be combined together with function composition. For example: + +```js +const withTypescript = require('@zeit/next-typescript') +const withSass = require('@zeit/next-sass') + +module.exports = withTypescript(withSass({ + webpack(config, options) { + // Further custom configuration here + return config + } +})) +``` + + ### Customizing babel config