Skip to content

cache destination name #20

Description

@tobsn
gulp.task('indexfiles', function() {
    return gulp.src('./**/index.src.php')
        .pipe(inlinesource())
        .pipe(usemin({
            inlinecss: [ minifyCss, 'concat' ],
            inlinejs: [uglify(), 'concat']
        }))
        .pipe(cache('index'))
        .pipe(gulpif(
            (process.env.ENV !== 'development'),
            replace('"/assets/', '"https://cdn/assets/')
        ))
        .pipe(rename({
            basename: 'index'
        }))
        .pipe(gulp.dest('.'));
});

Is there any way of telling the module that the outcome will be "index.php" because of the rename?
My source files are in the same directory as the output - source is index.src.php and output is index.php

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions