Git Product home page Git Product logo

Comments (5)

bvdputte avatar bvdputte commented on May 26, 2024 2

FWIW, I've worked around this by not working with this "gulp-modernizr" at all (which seems to be a gulp wrapper around customizr anyway), as it seems abandoned?

var gulp = require('gulp'),
    customizr = require("customizr");

// Configfile
var config = {
    // More info: https://www.npmjs.com/package/customizr  or  https://github.com/Modernizr/customizr
    "cache" : true,
    "devFile" : false,
    "dest" : "dist/assets/modernizr/modernizr.js",
    "options" : [
        "setClasses"
    ],
    "uglify" : true,
    "tests" : [],
    "excludeTests": [],
    "crawl" : true,
    "useBuffers": false,
    "files" : {
        "src": [
            "src/assets/_scss/**/*.scss",
            "src/assets/js/*.js"
        ]
    },
    "customTests" : []
};

function modernizr(done) {
    customizr(config, function () {});
    done();
}

gulp.task(modernizr);

I hope this proves useful for anyone.

from gulp-modernizr.

bvdputte avatar bvdputte commented on May 26, 2024

I'm experiencing the same:

    at Pumpify.onclose (/Users/bart/projects/project/node_modules/end-of-stream/index.js:43:67)
    at emitNone (events.js:106:13)
    at Pumpify.emit (events.js:208:7)
    at Pumpify.Duplexify._destroy (/Users/bart/projects/project/node_modules/duplexify/index.js:192:8)
    at /Users/bart/projects/project/node_modules/duplexify/index.js:175:10
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)`

node: v8.9.3
gulp: 4.0.0-alpha.3
gulp-cli: 2.0.0

from gulp-modernizr.

rejas avatar rejas commented on May 26, 2024

Same here with gulp4, gulp-cli 2.0.0 and node 9.3.0:

[11:00:42] 'prepare:modernizr' errored after 14 s
[11:00:42] Error: premature close
    at Pumpify.onclose (/Users/veeck/Projects/homepage/node_modules/end-of-stream/index.js:43:67)
    at Pumpify.emit (events.js:159:13)
    at Pumpify.Duplexify._destroy (/Users/veeck/Projects/homepage/node_modules/duplexify/index.js:192:8)
    at /Users/veeck/Projects/homepage/node_modules/duplexify/index.js:175:10
    at process._tickCallback (internal/process/next_tick.js:150:11)

from gulp-modernizr.

daniel-chapman-eqtr avatar daniel-chapman-eqtr commented on May 26, 2024

Same issue here:

[09:47:22] Error: premature close
    at Pumpify.onclose (D:\Webs\project\node_modules\end-of-stream\index.js:43:67)
    at emitNone (events.js:106:13)
    at Pumpify.emit (events.js:208:7)
    at Pumpify.Duplexify._destroy (D:\Webs\project\node_modules\duplexify\index.js:192:8)
    at D:\Webs\project\node_modules\duplexify\index.js:175:10
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)
node: 8.9.3
npm: 5.5.1
gulp: 4.0.0
gulp-cli: 2.0.0

Tried the usual of deleting node_modules, clearing cache, etc.

from gulp-modernizr.

rejas avatar rejas commented on May 26, 2024

Fix is in develop branch

from gulp-modernizr.

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.