How to use the gulp-append-prepend.appendFile function in gulp-append-prepend

To help you get started, we’ve selected a few gulp-append-prepend examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github opensensorhub / osh-js / Toolkit / gulpfile.js View on Github external
gulp.task('debug-vendor-css', false, ["init-vendor-css-file"], function () {
    // makes all in one file
    return gulp.src(OUT_DIR + "/vendor/vendor-debug.css")
        .pipe(gap.prependText(VENDOR_CSS_EXTRA_PARAMS))
        .pipe(gap.appendFile(ALL_VENDOR_CSS))
        .pipe(gulp.dest(OUT_DIR + "/vendor/"));
});
github openemr / openemr / interface / gulpfile.js View on Github external
gulp.task('styles:rtl', function () {
    gulp.src(config.src.styles.all)
        .pipe(sourcemaps.init())
        .pipe(sass().on('error', sass.logError))
        .pipe(prefix('last 1 version'))
        .pipe(gulpif(!config.dev, csso()))
        .pipe(gap.appendFile('themes/rtl.css'))
        .pipe(rename({
            dirname: "",
            prefix:"rtl_"
        }))
        .pipe(gulp.dest(config.dest.themes))
        .pipe(gulpif(config.build, gulp.dest(config.dist.storybook + config.dest.themes)))
        .pipe(gulpif(config.dev, reload({stream:true})));
});
github wasikuss / select2-multi-checkboxes / gulpfile.js View on Github external
function build() {
  return gulp.src(paths.includes)
    .pipe(replace('define([', function() {
      var pathObj = path.parse(path.relative('src', this.file.path));
      var name = path.format(Object.assign({}, pathObj, { ext: null, base: null }));
      return 'define(\'' + name + '\', [';
    }))
    .pipe(concat('select2.multi-checkboxes.js', { newLine: '\n\n' }))
    .pipe(indent())
    .pipe(gap.prependFile('build/wrapper.start.js', { trim: false }))
    .pipe(gap.appendFile('build/wrapper.end.js', { trim: false, separator: '' }))
    .pipe(gulp.dest('build'));
};

gulp-append-prepend

Simple Gulp plugin to append/prepend.

MIT
Latest version published 3 years ago

Package Health Score

47 / 100
Full package analysis