Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

_-prefixed files are copied instead of compiled #28

Closed
davidtheclark opened this issue Mar 1, 2014 · 1 comment
Closed

_-prefixed files are copied instead of compiled #28

davidtheclark opened this issue Mar 1, 2014 · 1 comment

Comments

@davidtheclark
Copy link

Readme says "files starting with _ are ignored even if they match the globbing pattern," which makes sense to me. But what's happening is that the _-prefixed SCSS files are being copied to my dest folder (remaining uncompiled SCSS).

So with a file structure like this --

- docs/content/example-styles/
  - compiled/
  - _example-variables.scss
  - circle.scss
  - square.scss
  - triangle.scss

-- when I run a task that looks like this --

gulp.src(['./docs/content/example-styles/*.scss'])
  .pipe(sass({
    'style': 'expanded'
  }))
  .pipe(gulp.dest('./docs/content/example-styles/compiled/'));

-- I end up with this:

- docs/content/example-styles/
  - compiled/
    - _example-variables.scss
    - circle.css
    - square.css
    - triangle.css
  - _example-variables.scss
  - circle.scss
  - square.scss
  - triangle.scss

See how _example-variables.scss got copied over, placed alongside the compiled CSS?

Am I missing something, or is this a bug?

@sindresorhus
Copy link
Owner

already fixed in master

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants