Closed hced closed 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.
metalsmith
*.scss
*.css
Is this the default behavior, and if so, how can it be changed?
FYI. Here's my metalsmith.json:
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" } } }
Nevermind. My bad!
Seems that the metalsmith-assets plugin was the culprit responsible for adding my sass files:
metalsmith-assets
"metalsmith-assets": { "source": "_source/assets", "destination": "./assets" }
I'm using CLI version of Metalsmith. When compiling with the
metalsmith
command, my*.scss
files 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
: