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

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

Open
ilyador opened this issue May 19, 2016 · 0 comments
Open

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

ilyador opened this issue May 19, 2016 · 0 comments

Comments

@ilyador
Copy link

ilyador commented May 19, 2016

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

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