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

Lost html files if more than 25 files. #302

Closed
judewang opened this issue Apr 16, 2015 · 2 comments
Closed

Lost html files if more than 25 files. #302

judewang opened this issue Apr 16, 2015 · 2 comments

Comments

@judewang
Copy link

Hello, I have 27 html files compiled to the .tmp folder. I found only the first 25 html files will be process and pass to the dist folder during the html task. Here's the gulpfile.coffee's code, really need to know how to fix this, thanks.

gulp.task 'views', ->
  gulp.src [
      '!app/mixins/**/*.jade'
      '!app/layouts/**/*.jade'
      '!app/partials/**/*.jade'
      'app/**/*.jade'
    ], base: 'app'
    .pipe $.data (file) ->
      return JSON.parse fs.readFileSync '.tmp/data.json'
    .pipe $.jade
      pretty: true
      basedir: 'app/'
      compileDebug: true
    .on 'error', (err) ->
      $.notify
        title: 'Jade compile failed.',
        sound: 'Sosumi'
      .write err.message
    .pipe gulp.dest '.tmp'

gulp.task 'html', ['views', 'styles', 'scripts', 'compass'], ->
  assets = $.useref.assets
    searchPath: ['.tmp', 'app', '.']

  gulp.src ['app/**/*.html', '.tmp/**/*.html']
    .pipe assets
    .pipe assets.restore()
    .pipe $.useref()
    .pipe gulp.dest 'dist'
@sindresorhus
Copy link
Member

Support questions are better asked on StackOverflow:
http://stackoverflow.com/questions/tagged/gulp
Paste in the link to the question here so others can follow ;)

@judewang
Copy link
Author

jonkemp/gulp-useref#102
This is a known issue haven't been fixed, yet.

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

2 participants