We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[17:58:07] [ERROR] concat file failed, TypeError: Cannot read property 'key' of undefined [17:58:07] [ERROR] concat file failed, TypeError: Cannot read property 'value' of undefined [17:58:07] [ERROR] concat file failed, TypeError: Cannot read property 'value' of undefined `
var gulp = require('gulp'); var construct = require('gulp-construct');
gulp.task('html', function() { gulp.src('src/**/index.html') .pipe(construct({ includerReg: //g, type: 'html' })) .pipe(construct({ includerReg: /<link\s+href=+"([^"]+)"\s+rel="stylesheet"/>/g, type: 'css' })) .pipe(construct({ includerReg: /<script\s+src=+"([^"]+)"></script>/g, type: 'js' })) .pipe(gulp.dest('./build')); }); //定义默认任务 gulp.task('default', function() { gulp.start('html'); }); ` 测试了很多次,都是出现这种错误
The text was updated successfully, but these errors were encountered:
No branches or pull requests
[17:58:07] [ERROR] concat file failed, TypeError: Cannot read property 'key' of undefined
<title>Document</title>[17:58:07] [ERROR] concat file failed, TypeError: Cannot read property 'value' of undefined
[17:58:07] [ERROR] concat file failed, TypeError: Cannot read property 'value' of undefined
`
var construct = require('gulp-construct');
gulp.task('html', function() {
gulp.src('src/**/index.html')
.pipe(construct({
includerReg: //g,
type: 'html'
}))
.pipe(construct({
includerReg: /<link\s+href=+"([^"]+)"\s+rel="stylesheet"/>/g,
type: 'css'
}))
.pipe(construct({
includerReg: /<script\s+src=+"([^"]+)"></script>/g,
type: 'js'
}))
.pipe(gulp.dest('./build'));
});
//定义默认任务
gulp.task('default', function() {
gulp.start('html');
});
`
测试了很多次,都是出现这种错误
The text was updated successfully, but these errors were encountered: