Skip to content

Commit

Permalink
Added tldw file example.md
Browse files Browse the repository at this point in the history
Signed-off-by: Jaid <jaid.jsx@gmail.com>
  • Loading branch information
Jaid committed Jun 19, 2021
1 parent 5267da5 commit 080f6f9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions readme/example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#### 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>
```

0 comments on commit 080f6f9

Please sign in to comment.