Skip to content

Colliding with other Gulp tasks using <!-- build:xxx ---> #172

Description

@ilyador

I have in the index.html file

<!-- build:env -->
<meta name="environment" content="development">
<meta name="debug" content="true">
<!-- endbuild -->

Which is used by other Gulp tasks, and unless I remove it, I get:

events.js:141
      throw er; // Unhandled 'error' event
      ^

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:8:11)
    at Object.posix.join (path.js:479:5)
    at module.exports (/Users/ilyo/dev/app/node_modules/gulp-usemin/lib/blocksBuilder.js:129:26)

I dug a little and found out section[4] and section[5] are empty
https://github.com/zont/gulp-usemin/blob/master/lib/blocksBuilder.js#L97

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions