Comments (5)
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.
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.
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.
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.
Fix is in develop branch
from gulp-modernizr.
Related Issues (20)
- includeTests rather than excludeTests? HOT 1
- Scanning css files HOT 3
- Config file? HOT 4
- Task "finishes" before it's actually done HOT 4
- npm install fails in postinstall.js HOT 4
- Any plans to release a "stable" version? HOT 4
- Any of of 'requirejs' breaks build. HOT 4
- Use Modernizr without gulp.src HOT 6
- "crawl: false" being ignored HOT 5
- Unable to install on windows 10 HOT 3
- Sometimes it works, sometimes it doesn't HOT 2
- adding customTests leads to ENOENT: no such file or directory HOT 3
- Template literals
- Gulp modernizr doesn't add css classes
- yarn warnings HOT 1
- touchevents + ES6 HOT 3
- Supported version HOT 6
- An in-range update of eslint is breaking the build 🚨 HOT 1
- An in-range update of mocha is breaking the build 🚨 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-modernizr.