Custom .csscomb.json doesn't work.
See original GitHub issueI have kept .csscomb.json in the root.
This is the code I have in gulpfile.js which doesn’t work:
var gulp = require('gulp'),
sass = require('gulp-sass'),
csscomb = require('gulp-csscomb');
gulp.task('styles', function() {
gulp.src('assets/sass/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(csscomb('.csscomb.json'))
.pipe(gulp.dest('assets/css/'));
});
gulp.task('default', function() {
// place code for your default task here
gulp.watch('assets/sass/**/*.scss',['styles']);
});
Niether this works:
var gulp = require('gulp'),
sass = require('gulp-sass'),
csscomb = require('gulp-csscomb');
gulp.task('styles', function() {
gulp.src('assets/sass/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(csscomb())
.pipe(gulp.dest('assets/css/'));
});
gulp.task('default', function() {
// place code for your default task here
gulp.watch('assets/sass/**/*.scss',['styles']);
});
Nor this:
var gulp = require('gulp'),
sass = require('gulp-sass'),
csscomb = require('gulp-csscomb');
gulp.task('styles', function() {
gulp.src('assets/sass/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(csscomb('./.csscomb.json'))
.pipe(gulp.dest('assets/css/'));
});
gulp.task('default', function() {
// place code for your default task here
gulp.watch('assets/sass/**/*.scss',['styles']);
});
No matter what I do, It applies the default config.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5
Top Results From Across the Web
Gulp.src Glob Won't Copy .csscomb.json File - Stack Overflow
I am trying to copy .csscomb.json over to my dest folder. Everything works and copies over, but the .csscomb.json does not. When I...
Read more >CSScomb - Visual Studio Marketplace
Launch VS Code Quick Open ( Ctrl+P ), paste the following command, ... Custom configuration is fun and simple: just put .csscomb.json file ......
Read more >CSScomb settings for Drupal (CSS formatting and sort tool)
CSScomb formats and sorts CSS properties in css, scss, sass or less files. An explanation of the options can be found at ...
Read more >grunt-csscomb - npm Package Health Analysis - Snyk
Learn more about grunt-csscomb: package health score, popularity, security, ... A string value that is used to specify custom-csscomb.json file path.
Read more >CSScomb - Package Control
Press ctrl + shift + c or open “Tools” menu and select “Run CSScomb”. Custom configuration. Custom configuration is fun and simple: just...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
To fix this I’ve rolled back to use 3.0.2 and now all is working fine. This does really need fixing though.
Realise this is an old issue but I’m having this issue even now, but it seems it is only on Windows. Trying the same code from the same repo on a mac works fine.
As @srahulprdxn says, neither of these two options work:
or
Looking at the source code I also tried the below to no avail: