kaguillera/newspipeline

Desired css locations and directory structure

kaguillera opened this issue · 2 comments

The resulting structure of the gulp start/build is shown below:
dist
├── another.html
├── css
│   └── app.css
├── index.html
├── markdown.html

The resulting structure that is produced when the new style.py (the replacement for the gulp-sass) is run is shown below:
dist
├── another.html
├── assets
│   └── scss
│   └── app.css
├── index.html
└── markdown.html

I need to correct this or atleast make it suitable for when I decide to replace the inline.

Not sure why this is happening...is this a default libsass behaviour?

Fixed (commit)

The dirname argument of the sass.compile function has the following property:

Directory tree structure of the source directory will be maintained in the output directory as well.

Thus I had to make the source directory value in the dirname pair such that it would produce the desired result.