stevenschobert / metalsmith-sass

Sass plugin for Metalsmith.
MIT License
48 stars 23 forks source link

Sass files gets included in compiled build #8

Closed hced closed 10 years ago

hced commented 10 years ago

I'm using CLI version of Metalsmith. When compiling with the metalsmith command, my *.scssfiles gets included next to their *.css counterparts in the front end styles directory.

Is this the default behavior, and if so, how can it be changed?

FYI. Here's my metalsmith.json:

{
  "source": "./_source",
  "destination": "./_build",
  "clean": true,
  "metadata": {
    "title": "Project Name",
    "description": "A description about Project Name"
  },
  "plugins": {
    "metalsmith-ignore": ["_drafts/*", "_content/index.md"],
    "metalsmith-drafts": {},
    "metalsmith-markdown": {},
    "metalsmith-permalinks": {
      "pattern": ":collection/:title"
    },
    "metalsmith-collections": {
      "projects": {
        "pattern": "_source/projects/**/*.md",
        "sortBy": "date",
        "reverse": true
      }
    },
    "metalsmith-tags": {
      "handle": "tags",
      "path": "tags",
      "template": "_templates/tag.hbs",
      "sortBy": "date",
      "reverse": true
    },
    "metalsmith-templates": {
      "directory": "_templates",
      "engine": "handlebars",
      "partials": {
        "header": "partials/header",
        "footer": "partials/footer"
      }
    },
    "metalsmith-sass": {
      "outputStyle": "expanded",
      "outputDir": "assets/styles/",
      "imagePath": "_source/assets/images/"
    },
    "metalsmith-navigation": {},
    "metalsmith-assets": {
      "source": "_source/assets",
      "destination": "./assets"
    }
  }
}
hced commented 10 years ago

Nevermind. My bad!

Seems that the metalsmith-assets plugin was the culprit responsible for adding my sass files:

"metalsmith-assets": {
    "source": "_source/assets",
    "destination": "./assets"
}