appleboy / gulp-compass

Compass plugin for gulp
MIT License
174 stars 55 forks source link

Unexpected gulp.dest path #88

Open chinghanho opened 9 years ago

chinghanho commented 9 years ago
// gulpfile.js
gulp.task('styles', function () {
  return gulp.src('./assets/sass/**/*.scss')
    .pipe(plumber({
      errorHandler: function (err) {
        console.log(err.message);
        this.emit('end');
      }
    }))
    .pipe(compass({
      bundle_exec: true,
      project: __dirname,
      style: 'expanded',
      comments: true,
      css: 'public/assets/stylesheets',
      sass: 'assets/sass',
      javascript: 'public/assets/javascripts',
      font: 'assets/fonts',
      image: 'assets/images',
      generated_images_path: 'public/assets/images/css-sprites',
      require: ['susy', 'breakpoint']
    }))
    .on('error', function (err) {
      console.log(err);
    })
    .pipe(autoprefixer())
    .pipe(gulp.dest('public/assets/stylesheets'));
});

expected file structure:

|-- assets/
|   |-- sass/
|       |-- main.scss
|
|-- public/
|   |-- assets/
|       |-- stylesheets/
|           |-- main.css

after gulp styles:

|-- assets/
|   |-- sass/
|       |-- main.scss
|
|-- public/
|   |-- public/ <--- why?
|       |-- assets/
|           |-- stylesheets/
|               |-- main.css

This only occur on one of my computer, another one works normally.

Gulp version: 3.8.10 (both).

Any idea?

appleboy commented 9 years ago

@chinghanho Windows or Linux OS environment?

chinghanho commented 9 years ago

@appleboy Both computers are OS X 10.10.1.

arb commented 9 years ago

Same type of problem here. I'm getting an extra directory level in my output. Any update on this?

minhtranite commented 9 years ago

Confirm issue screenshot from 2015-03-03 14 36 57 dest path are '.tmp/.styles/main.css'. I think the path '.tmp/styles/main.css' is true