Skip to content

Commit

Permalink
Rebuilt readme with tldw
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaid committed Jun 19, 2021
1 parent 3a50568 commit 4f944d3
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,31 @@ yarn add --dev inject-body-webpack-plugin@^1.2.0

## Example

a
#### Input

webpack.config.babel.js
```js
import HtmlWebpackPlugin from "html-webpack-plugin"
import InjectBodyPlugin from "inject-body-webpack-plugin"

export default {
plugins: [
new HtmlWebpackPlugin({
templateContent: "<html><body></body></html>"
}),
new InjectBodyPlugin({
content: '<main id="root">Hi!</main>'
}),
],
}
```

#### Output

index.html
```html
<html><body><main id="root">Hi!</main></body></html>
```



Expand Down

0 comments on commit 4f944d3

Please sign in to comment.