本文整理匯總了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
}));
}