gulp-stylefmt icon indicating copy to clipboard operation
gulp-stylefmt copied to clipboard

Format and save all files from src (dist = src)

Open mparpaillon opened this issue 9 years ago • 3 comments

Hi,

I have an existing project with tons of CSS files which need to be cleaned up. How can I format and replace files with a wildcard path in src() ?

Thanks

gulp.task('format-css', function lintCssTask() {
  return gulp
    .src(`MY_PATH/components/src/**/*.css`)
    .pipe(gulpStylefmt())
    .pipe(gulp.dest('????'));
});

mparpaillon avatar Nov 24 '16 15:11 mparpaillon

Same question here.

jiezhang917 avatar Apr 06 '17 16:04 jiezhang917

Ditto

danepowell avatar May 10 '17 19:05 danepowell

Guys, what you're probably looking for is the stylefmt CLI to do that in one go.

https://github.com/morishitter/stylefmt/blob/master/bin/cli.js

Pilatch avatar Jun 13 '18 13:06 Pilatch