When learning Gulp, see a lot of people write
gulp.task (' Styles ', function () {return gulp.src (' src/styles/main.scss '). Pipe (Sass ({style: ' expanded '}). Pipe (Autoprefixer (' last 2 version ', ' Safari 5 ', ' IE 8 ', ' IE 9 ', ' Opera 12.1 ', ' iOS 6 ', ' Android 4 ') . Pipe (Gulp.dest (' dist/assets/css ')). Pipe (rename ({suffix: '. Min ')). Pipe (Minifycss ()). Pipe (Gulp.dest (' Dist/asse Ts/css '). Pipe (notify ({message: ' Styles task Complete ');});
After trying to find an error, the path must be a string, but I did not write wrong, after trying a variety of,
Https://www.npmjs.com/package/gulp-ruby-sass
Found on the official website, Gulp-ruby-sass version 1.x
Gulp-ruby-sass is a gulp source adapter. Use it instead of GULP.SRC.
Looked at its own version of the package, the original is 1.x
//gulp-ruby-sass:1.xgulp.task (' sass ', function () {return sass (' path/to /scss ', {style: ' expanded '}). Pipe (Gulp.dest (' path/to/css ');});
You can use it in this case
Gulp small pits one