gulp-html-replace:替换HTML中的构建块。 像useref一样,但是做对了

时间:2024-02-24 10:32:40
【文件属性】:

文件名称:gulp-html-replace:替换HTML中的构建块。 像useref一样,但是做对了

文件大小:14KB

文件格式:ZIP

更新时间:2024-02-24 10:32:40

nodejs javascript gulp gulp-plugin gulpplugin

gulp-html-replace 替换HTML中的构建块。 像useref一样,但是做对了。 目录 用法 安装: npm install --save-dev gulp-html-replace 在您HTML文件中放置一些块: <!-- build: --> Everything here will be replaced <!-- endbuild --> name是块的名称。 可以包含字母,数字,下划线( _ )和连字符( - )符号。 API htmlreplace(任务,选项) 任务 类型: Object {task-name: replacement} task-name -HTML中块的名称。 替换String|Array|stream.Readable|Object替换。 请参阅下面的示例。 简单的例子: // Options is a single string htmlreplace ( { js : 'js/main.js' } ) // Options is an array of strings htmlreplace ( { js


【文件预览】:
gulp-html-replace-master
----.gitignore(48B)
----appveyor.yml(303B)
----test()
--------null.js(372B)
--------stream.js(8KB)
--------fixture.html(1KB)
--------buffer.js(8KB)
--------expected.html(1KB)
----LICENSE(1KB)
----package.json(1KB)
----readme.md(7KB)
----.travis.yml(107B)
----lib()
--------parser.js(1KB)
--------block.js(3KB)
--------common.js(3KB)
--------index.js(2KB)

网友评论