Coder Social home page Coder Social logo

Comments (4)

ben-eb avatar ben-eb commented on August 15, 2024

Your gulp tasks look fine to me. Is there any error output?

Edit: You can always specify a task dependency - so that when you run gulp uncss then it will rebuild the sass files for you before removing the unused selectors. Such as:

gulp.task('uncss', ['sass'], function() {
    gulp.src('public/assets/build/css/app.min.css')
        .pipe(uncss({
            html: glob.sync('public/**/*.html')
        }))
        .pipe(gulp.dest('public/assets/build/css/test'));
});

from gulp-uncss.

solenoo avatar solenoo commented on August 15, 2024

I'm getting this error

"Error parsing JSON from phantom: SyntaxError: Unexpected end of input
Data from phantom was:"

from gulp-uncss.

ben-eb avatar ben-eb commented on August 15, 2024

I'm not really sure what to suggest, other than if you can get a reduced test case together and notify @giakki via the UnCSS issue tracker. Before you do, just make sure your source files (HTML and output CSS) don't contain any errors/weird things that might be causing phantom to fail. I'm not entirely sure if its the sass that is the problem however, if all of that is compiling correctly.

from gulp-uncss.

ben-eb avatar ben-eb commented on August 15, 2024

@solenoo I think this is related to this issue (uncss/uncss#98) so I'm going to close this as a duplicate of that one.

from gulp-uncss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.