How to use the gulp-sass.logError function in gulp-sass

To help you get started, we’ve selected a few gulp-sass examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sergiocruz / react-connect4 / gulpfile.babel.js View on Github external
gulp.task('styles', () => {
  return gulp.src('app/stylesheets/*.scss')
    // .pipe($.plumber())
    // .pipe($.sourcemaps.init())
    .pipe(sass.sync({
      outputStyle: 'expanded',
      precision: 10,
      includePaths: ['.']
    }).on('error', sass.logError))
    // .pipe($.autoprefixer({browsers: ['last 1 version']}))
    // .pipe($.uncss({
    //   html: ['app/*.html']
    // }))
    // .pipe($.sourcemaps.write())
    .pipe(gulp.dest('public/stylesheets'))
    .pipe(bundle());
    // .pipe(reload({stream: true}));
});
github bitcrowd / tickety-tick / gulpfile.babel.js View on Github external
function css(version, compat) {
  const prefixer = autoprefixer({ browsers: compat });
  return gulp.src(src.common('popup', 'popup.scss'))
    .pipe(sass({ includePaths: './node_modules' }).on('error', sass.logError))
    .pipe(postcss([prefixer]))
    .pipe(gulp.dest(dist[version]('popup')));
}
github thiagosf / skitter / gulpfile.babel.js View on Github external
gulp.task('sass', () => {
  return gulp.src('./scss/**/*.scss')
    .pipe(sass({ outputStyle: 'compressed' }).on('error', sass.logError))
    .pipe(autoprefixer())
    .pipe(gulp.dest('./dist'));
})
github crper / StartFrontendProject / gulpfile.babel.js View on Github external
gulp.task('scss_2_css', () => {
    return gulp.src(path.s_sass + '**/*.scss')
    .pipe(plumber())
    .pipe(sass.sync().on('error', sass.logError))
    .pipe(plumber.stop())
    .pipe(postcss([ autoprefixer({ browsers: ['last 3 versions'] }) ]))
    .pipe(gulp.dest(path.s_css));
});
github salesforce-ux / design-system / scripts / gulp / dist.js View on Github external
export const sass = () =>
  gulp
    .src(distPath('scss/index.scss'))
    .pipe(
      gulpSass({
        precision: 3,
        includePaths: [paths.node_modules]
      })
    )
    .pipe(gulpSass().on('error', gulpSass.logError))
    .pipe(gulpPostcss([autoprefixer({ remove: false })]))
    .pipe(
      gulpRename(path => {
        path.basename = MODULE_NAME + path.basename.substring('index'.length);
        path.extname = '.css';
        return path;
      })
    )
    .pipe(gulp.dest(distPath('assets/styles/')));
github GoogleChromeLabs / sw-precache / app-shell-demo / gulpfile.babel.js View on Github external
gulp.task('sass', () => {
  return gulp.src(`${SRC_DIR}/static/sass/*.scss`)
    .pipe(sass().on('error', sass.logError))
    .pipe(cleanCSS())
    .pipe(gulp.dest(`${BUILD_DIR}/styles`));
});
github AxaGuilDEv / react-toolkit / storybook / design-system / gulpfile.babel.js / sass.js View on Github external
export const sassProd = () => src(`${pathSrc}${sassIndex}`)
  .pipe(
    sass({
      includePaths: ['node_modules'],
    }).on('error', sass.logError),
  )

  .pipe(
    autoprefixer({
      browsers: ['last 2 versions'],
      cascade: false,
    }),
  )
  .pipe(cleanCSS())
  .pipe(concat('bundle.css'))
  .pipe(dest(pathDest));
github zeit / serve / gulpfile.babel.js View on Github external
gulp.task('scss', () => gulp.src(paths.styles)
  .pipe(sass(sassConfig).on('error', sass.logError))
  .pipe(gulp.dest('dist/assets')))

gulp-sass

Gulp plugin for sass

MIT
Latest version published 3 years ago

Package Health Score

65 / 100
Full package analysis