From b7d40219036f1abd0f857856aa6176ecfcf8e3f6 Mon Sep 17 00:00:00 2001 From: exuanbo Date: Sun, 30 Aug 2020 15:43:33 +0800 Subject: [PATCH] docs: update --- README.md | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index b503d48..7afbb1b 100644 --- a/README.md +++ b/README.md @@ -36,15 +36,13 @@ Targate file `src/html/index.html` ```html - - - + ``` -Source file `src/js/inlineScript.js` +Source file `src/js/app.js` ```js function test() { @@ -57,10 +55,8 @@ Output file ```html - - - + ``` @@ -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')) }) ```