Skip to content

Commit b7d4021

Browse files
committed
docs: update
1 parent a33d507 commit b7d4021

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,13 @@ Targate file `src/html/index.html`
3636

3737
```html
3838
<html>
39-
<head>
40-
<script src="../js/inlineScript.js" inline></script>
41-
</head>
4239
<body>
40+
<script src="../js/app.js" inline></script>
4341
</body>
4442
</html>
4543
```
4644

47-
Source file `src/js/inlineScript.js`
45+
Source file `src/js/app.js`
4846

4947
```js
5048
function test() {
@@ -57,10 +55,8 @@ Output file
5755

5856
```html
5957
<html>
60-
<head>
61-
<script>function test(){const a="lorem ipsum";return a}</script>
62-
</head>
6358
<body>
59+
<script>function test(){const a="lorem ipsum";return a}</script>
6460
</body>
6561
</html>
6662
```
@@ -88,12 +84,8 @@ import inlineSource from 'gulp-inline-source-html'
8884

8985
```javascript
9086
task('inlineSource', () => {
91-
const options = {
92-
compress: false
93-
}
94-
9587
return src('src/*.html')
96-
.pipe(inlineSource(options))
88+
.pipe(inlineSource({ compress: false }))
9789
.pipe(dest('dist'))
9890
})
9991
```

0 commit comments

Comments
 (0)