gulp-decorate-index

0.0.1 • Public • Published

gulp-decorate-index

合并页面中引用文件到当前页面

Usage

First, install gulp-decorate-index as a development dependency:

npm install --save-dev gulp-decorate-index

Then, add it to your gulpfile.js:

var decorate-index = require("gulp-decorate-index");

gulp.src("./src/index.html")
	.pipe(merge-fragment({
        "fragment":"*",
         "scriptFiles":["js/a.js"
                         ,"js/b.js"
                        ],
         "cssFiles":["aa.css"]))
	.pipe(gulp.dest("./dist"));

API

merge-fragment(options)

options.msg

Type: String
Default: Hello World

The message you wish to attach to file.

License

MIT License

Package Sidebar

Install

npm i gulp-decorate-index

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • matsutakefungus