austinpray/asset-builder

Not parsing .sass files

davidyeiser opened this issue · 2 comments

Forgive me if my language is not precise, I'm more of a designer than a developer.

I'm using the Sage theme for a project and when I try compile my assets with Gulp I get this error:

[09:28:53] Starting 'styles'...
/.../theme-3.0/styles/main.css:28:12: Unknown word
  font-size: 15px
  @media #{$break-mobile-landscape}
           ^
    font-size: 15px
[09:28:53] Finished 'styles' after 72 ms

When I navigate to dist/styles the main.css file is not there.

Here's the manifest.json snippet:

"main.css": {
      "files": [
        "sass/base.sass"
      ],
      "main": true
    },

However, when I change .sass to .scss everything works fine (I converted the .sass files to .scss with sass-convert to test).

"main.css": {
      "files": [
        "sass/base.scss"
      ],
      "main": true
    },

Terminal:

[09:32:36] Starting 'styles'...
[09:32:36] Finished 'styles' after 158 ms

And the main.css file is in dist/styles and is generated properly.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26447066-not-parsing-sass-files?utm_campaign=plugin&utm_content=tracker%2F8853550&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F8853550&utm_medium=issues&utm_source=github).

Yeah I'll go ahead and add support for .sass. Perhaps as an extension of #35

Awesome, thanks!