appleboy / appleboy/gulp-compass
Can't process the output of the gulp-compass task.
- Dominant language
- JavaScript
- Stars
- 172
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to get the `gulp-compass` version `1.0.1` into my `gulp` build stream but am having issues working with the output of the compass compiler.
Here is the gulp task I've got which should:
1. Find all `.scss` files.
2. Process with `compass`
3. Run `autoprefixer` over the resulting css
4. Write to .css file
5. Trigger `livereload`
6. Output the .css `filesize` to console.
``` js
gulp.task('styles', function() {
gulp
.src('assets/scss/**.scss')
.pipe( tasks.compass( { config_file: './config.rb' } ) )
.pipe( tasks.autoprefixer( 'last 2 versions', 'ie 8' ) )
.pipe( gulp.dest('assets/css') )
.pipe( tasks.livereload(server) )
.pipe( tasks.filesize() );
});
```
The issue I'm experiencing is that after `.pipe( tasks.compass( { opts } ) )` has run, `autoprefixer` does not trigger, nor does the `livereload` or `filesize` tasks.
The compass output does however get written to the `.css` file as desired.
Note: Livereload by itself is working, coffeescripts are successfully compiled and the livereload is triggered so the module in itself is working.
Any ideas would be much appreciated.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the `styles` gulp task with `gulp-compass` 1.0.1 and `config.rb`, checking whether the stream reaches `autoprefixer`, `livereload`, and `filesize` after Compass writes the CSS. Inspect the gulp-compass transform entry point and stream completion behavior; done means all downstream tasks run while the CSS output remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100