Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
exuanbo committed Aug 30, 2020
1 parent a33d507 commit b7d4021
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,13 @@ Targate file `src/html/index.html`

```html
<html>
<head>
<script src="../js/inlineScript.js" inline></script>
</head>
<body>
<script src="../js/app.js" inline></script>
</body>
</html>
```

Source file `src/js/inlineScript.js`
Source file `src/js/app.js`

```js
function test() {
Expand All @@ -57,10 +55,8 @@ Output file

```html
<html>
<head>
<script>function test(){const a="lorem ipsum";return a}</script>
</head>
<body>
<script>function test(){const a="lorem ipsum";return a}</script>
</body>
</html>
```
Expand Down Expand Up @@ -88,12 +84,8 @@ import inlineSource from 'gulp-inline-source-html'

```javascript
task('inlineSource', () => {
const options = {
compress: false
}

return src('src/*.html')
.pipe(inlineSource(options))
.pipe(inlineSource({ compress: false }))
.pipe(dest('dist'))
})
```
Expand Down

0 comments on commit b7d4021

Please sign in to comment.