本文整理汇总了TypeScript中gulp-autoprefixer.default函数的典型用法代码示例。如果您正苦于以下问题:TypeScript default函数的具体用法?TypeScript default怎么用?TypeScript default使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了default函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: bundleRelease
function bundleRelease(stream) {
return stream
.pipe(concat('main.css'))
.pipe(applySass())
.pipe(autoprefixer({browsers: settings.autoprefixer}))
.pipe(minify())
.pipe(gulp.dest(helper.getTempFolder() + '/css'));
}
示例2: function
gulp.task('scss', function () {
return gulp.src(PROJECT_PATTERNS.scss)
.pipe(sourcemaps.init())
.pipe(sass({ outputStyle: 'compressed' }).on('error', sass.logError))
.pipe(autoprefixer('last 2 version'))
.pipe(sourcemaps.write('/maps'))
.pipe(gulp.dest(PROJECT_PATH.css))
.pipe(browserSync.stream({ match: '**/*.css' }));
});
示例3: function
gulp.task('css', function () {
return gulp.src('src/content/css/*.css')
.pipe(autoprefixer('last 2 version'))
.pipe(gulp.dest('dist/content/css'))
.pipe(rename({ suffix: '.min' }))
.pipe(cssnano())
.pipe(gulp.dest('dist/content/css'))
.pipe(notify({ message: 'Css task complete' }));
});
示例4: sass
gulp.task('sass', function () {
return sass('src/content/scss/*.scss', { style: 'expanded' })
.pipe(autoprefixer('last 2 version'))
.pipe(gulp.dest('dist/content/css'))
.pipe(rename({ suffix: '.min' }))
.pipe(cssnano())
.pipe(gulp.dest('dist/content/css'))
.pipe(notify({ message: 'Sass task complete' }));
});
示例5:
export = gulp.task('production:styles', () => {
return gulp
.src(paths.sources.styles)
.pipe(sass())
.pipe(autoprefixer(config.autoprefixer))
.pipe(nano(config.nano))
.pipe(gulp.dest(paths.output.styles))
.on('error', errors)
.pipe(browsersync.stream());
});
示例6:
gulp.task('css-replace', () => {
return gulp.src(webAppDir + '**/*.scss')
.pipe(newer({dest: staticDir, ext: '.css'}))
.pipe(sourcemaps.init())
.pipe(sass({outputStyle: 'compressed'}))
.pipe(autoprefixer({
browsers: ['last 2 versions'],
cascade: false
}))
.pipe(sourcemaps.write('/'))
.pipe(gulp.dest(staticDir))
});
示例7: bundleDevelopment
function bundleDevelopment(stream) {
return stream
.pipe(sourcemaps.init())
.pipe(concat('main.css'))
.pipe(applySass())
.pipe(autoprefixer({browsers: settings.autoprefixerRules}))
.pipe(sourcemaps.write())
.pipe(gulp.dest(helper.getDistFolder() + '/css'))
.pipe(refresh({
start: helper.isWatching(),
port: settings.liveReloadPort
}));
}
示例8: function
gulp.task('styles', function() {
gulp.src('src/scss/styles.scss')
.pipe(sourcemaps.init())
.pipe(sass({outputStyle: 'compressed'}))
.on('error', errorlog)
.pipe(autoprefixer({
browsers: ['last 3 versions'],
cascade: false
}))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('src/css'))
//.pipe(reload({stream:true}));
});
示例9: sass
@Task('sass')
sass() {
return gulp.src('app/scss/**/*.scss')
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(autoprefixer())
.pipe(urlAdjuster({
replace: ['../../', '../']
}))
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('./app/css'))
.pipe(browserSync.reload({
stream: true
}));
}