8000 Add gulp task to watch · Issue #336 · fourkitchens/emulsify · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.
This repository was archived by the owner on Mar 31, 2023. It is now read-only.
Add gulp task to watch #336
Open
Open
@adamfchs

Description

@adamfchs

This is more a question and not an issue—wasn't sure where to post.

I've created a gulp task that will gzip the style.css which immediately gains 4-5 points in Google Page speed:

gulp.task('compress', function() {
gulp.src('./dist/*.css')
.pipe(gzip())
.pipe(gulp.dest('./dist'));
});

gulp.task('zip', ['css', 'compress']);

Its working fine, but I would like to plug it into the watch/compile process run with 'npm start' so that when the style.css gets automatically compiled, it gets automatically zipped as well.

Any direction on how I can go about doing this? This is my current npm start: "start": "gulp compile && gulp theme && gulp zip", zip is not working on style change

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0