cognitom / gulp-slim

Slim plugin for gulp
https://www.npmjs.org/package/gulp-slim
MIT License
44 stars 14 forks source link

Update through2 dependency. #30

Closed phyllisstein closed 9 years ago

phyllisstein commented 9 years ago

Hey there! I was experiencing a strange bug with this lovely package: using its latest version, as well as the latest Gulp and Slim, one file in a tree of many was consistently being transformed into an empty HTML file. I had a folder tree that looked something like this:

src
├── index.slim
├── project
│   ├── checkout
│   │   ├── confirmation.slim
│   │   ├── footer.slim
│   │   ├── header.slim
│   │   └── main.slim
│   ├── common
│   │   └── layout.slim
│   ├── home
│   │   ├── footer.slim
│   │   ├── header.slim
│   │   └── main.slim
│   ├── shop
│   │   ├── detail.slim
│   │   ├── footer.slim
│   │   ├── header.slim
│   │   └── main.slim
│   └── static
│       ├── about.slim
│       ├── faq.slim
│       ├── footer.slim
│       ├── header.slim
│       ├── partners.slim
│       └── press.slim
└──

...and every file was being compiled successfully but index.slim unless I ran gulp html on its own; running the complete task suite generated an empty index.html file every time. I finally managed to squash the bug by upgrading through2, and now it works beautifully.

Thanks for all your hard work on this plugin! You saved me from certain Jade.

phyllisstein commented 9 years ago

Nope, I was wrong---through2 wasn't the problem. Will keep poking at it.