Skip to content
New issue

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

提示错误 #1

Open
w3c0929 opened this issue Jun 28, 2016 · 0 comments
Open

提示错误 #1

w3c0929 opened this issue Jun 28, 2016 · 0 comments

Comments

@w3c0929
Copy link

w3c0929 commented Jun 28, 2016

[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
`

<title>Document</title>
  • nihao
  • <script src="./index.js"></script>

    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');
    });
    `
    测试了很多次,都是出现这种错误

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant