Hello,
im playing with Netlify for the first time. Trying to deploy static website build by my custom gulpfile.js. Everything went ok (almost) and the page is deployed, however one file (package) is missing.
I have in my package.json:
…
"dependencies": {
"instafeed.js": "^1.4.1",
"scrollmonitor": "^1.2.3"
},
…
I have in my gulpfile.js:
const config = {
src: {
js: {
vendor: [
'node_modules/instafeed.js/instafeed.min.js',
'node_modules/scrollmonitor/scrollmonitor.js',
],
}
}
}
…
gulp.task('js:vendor', () => {
return gulp.src(config.src.js.vendor)
.pipe($.debug({ title: 'js:vendor-source' }))
.pipe(gulp.dest(config.dist.js))
.pipe($.debug({ title: 'js:vendor-result:' }));
});
…
This is what I get in Netlify log:
…
4:55:23 PM: Starting 'js:vendor'...
4:55:23 PM: [14:55:23] Starting 'js'...
4:55:23 PM: [14:55:23] Starting 'images'...
4:55:23 PM: [14:55:23]
4:55:23 PM: Finished 'build' after 517 ms
4:55:24 PM: [14:55:24]
4:55:24 PM: js:vendor-source node_modules/instafeed.js/instafeed.min.js
4:55:24 PM: [14:55:24]
4:55:24 PM: js:vendor-source 1 item
4:55:24 PM: [14:55:24]
4:55:24 PM: Finished 'pug' after 979 ms
4:55:24 PM: [14:55:24]
4:55:24 PM: js:vendor-result: dist/assets/js/instafeed.min.js
4:55:24 PM: [14:55:24]
4:55:24 PM: js:vendor-result: 1 item
4:55:24 PM: [14:55:24]
4:55:24 PM: Finished 'js:vendor' after 506 ms
…
Which means scrollmonitor hasn’t been found by Gulp at all. I checked with cd node_modules/scrollmonitor && ls during the deploy if the package is installed and it is.
Everything works fine locally. Any idea?