TypeError: Cannot read property 'replace' of undefined
at module.exports (/Users/xuxuewen/workspace/coding/com.andy.train/node_modules/useref/lib/getBlocks.js:31:19)
at module.exports (/Users/xuxuewen/workspace/coding/com.andy.train/node_modules/useref/index.js:8:16)
at Gulp.<anonymous> (/Users/xuxuewen/workspace/coding/com.andy.train/gulpfile.babel.js:28:9)
at module.exports (/Users/xuxuewen/workspace/coding/com.andy.train/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/Users/xuxuewen/workspace/coding/com.andy.train/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/Users/xuxuewen/workspace/coding/com.andy.train/node_modules/orchestrator/index.js:214:10)
at Gulp.Orchestrator.start (/Users/xuxuewen/workspace/coding/com.andy.train/node_modules/orchestrator/index.js:134:8)
at /Users/xuxuewen/.nvm/versions/node/v6.10.2/lib/node_modules/gulp/bin/gulp.js:129:20
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
gulpfile.babel.js:
file ./src/css-practice/index.html with a sample content:
cmd:
then get error: