Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gulp-filter and gulp-csso #20

Open
ghost opened this issue Aug 21, 2015 · 1 comment
Open

gulp-filter and gulp-csso #20

ghost opened this issue Aug 21, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 21, 2015

If you'r on module Minifying and filtering - optimizing css, you may need to alter some code in correction to the video:

package.json

"gulp-csso": "^1.0.0",
"gulp-filter": "^3.0.1",

gulpfile.js

    var cssFilter = $.filter(['**/*.css'], {restore: true});

    return gulp
        .... omitted
        .pipe(cssFilter)
        .pipe($.csso())
        .pipe(cssFilter.restore)
        .... omitted

Notice the value of cssFilter and the pipe of css filter restore.

update:
You can also apply the same thing for the next video - Optimizing javascript

@johnpapa
Copy link
Owner

johnpapa commented Sep 2, 2015

PR ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant