在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):alexmingoia/gulp-file开源软件地址(OpenSource Url):https://github.com/alexmingoia/gulp-file开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-fileCreate vinyl files from a string or buffer and insert into the Gulp pipeline. Installationnpm install gulp-file APIplugin(name, source, options)Creates a vinyl file with the given plugin(sourceArray, options)Creates vinyl files for each entry in the array. Each entry is an object with a ExamplePrimus outputs the client library as a string. Using var gulp = require('gulp')
, file = require('gulp-file');
gulp.task('js', function() {
var str = primus.library();
return gulp.src('scripts/**.js')
.pipe(file('primus.js', str))
.pipe(gulp.dest('dist'));
}); Use it at the beginning of your pipeline by setting var gulp = require('gulp')
, file = require('gulp-file');
gulp.task('js', function() {
var str = primus.library();
return file('primus.js', str, { src: true })
.pipe(gulp.dest('dist'));
}); OptionssrcCalls BSD Licensed |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论