Skip to content

Commit

Permalink
docs: fix link to compilation object
Browse files Browse the repository at this point in the history
  • Loading branch information
zgreen authored and jantimon committed Mar 24, 2020
1 parent 710e299 commit d1b173f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -281,7 +281,7 @@ The following variables are available in the template:
- `webpackConfig`: the webpack configuration that was used for this compilation. This
can be used, for example, to get the `publicPath` (`webpackConfig.output.publicPath`).

- `compilation`: the webpack [compilation](https://webpack.js.org/api/compilation/) object.
- `compilation`: the webpack [compilation object](https://webpack.js.org/api/compilation-object/).
This can be used, for example, to get the contents of processed assets and inline them
directly in the page, through `compilation.assets[...].source()`
(see [the inline template example](examples/inline/template.pug)).
Expand Down

0 comments on commit d1b173f

Please sign in to comment.