File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff 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
5048function 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
9086task (' 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```
You can’t perform that action at this time.
0 commit comments