gulp-autoprefixer

WebJar for gulp-autoprefixer

License

License

MIT
Categories

Categories

Auto Application Layer Libs Code Generators
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

gulp-autoprefixer
Last Version

Last Version

6.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

gulp-autoprefixer
WebJar for gulp-autoprefixer
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/gulp-autoprefixer

Download gulp-autoprefixer

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/gulp-autoprefixer/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>gulp-autoprefixer</artifactId>
    <version>6.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/gulp-autoprefixer/
implementation 'org.webjars.npm:gulp-autoprefixer:6.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/gulp-autoprefixer/
implementation ("org.webjars.npm:gulp-autoprefixer:6.1.0")
'org.webjars.npm:gulp-autoprefixer:jar:6.1.0'
<dependency org="org.webjars.npm" name="gulp-autoprefixer" rev="6.1.0">
  <artifact name="gulp-autoprefixer" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='gulp-autoprefixer', version='6.1.0')
)
libraryDependencies += "org.webjars.npm" % "gulp-autoprefixer" % "6.1.0"
[org.webjars.npm/gulp-autoprefixer "6.1.0"]

Dependencies

compile (6)

Group / Artifact Type Version
org.webjars.npm : through2 jar [3.0.1,4)
org.webjars.npm : postcss jar [7.0.2,8)
org.webjars.npm : autoprefixer jar [9.5.1,10)
org.webjars.npm : fancy-log jar [1.3.2,2)
org.webjars.npm : vinyl-sourcemaps-apply jar [0.2.1,0.3)
org.webjars.npm : plugin-error jar [1.0.1,2)

Project Modules

There are no modules declared in this project.

gulp-autoprefixer Build Status

Prefix CSS with Autoprefixer

Issues with the output should be reported on the Autoprefixer issue tracker.

Install

$ npm install --save-dev gulp-autoprefixer

Usage

const gulp = require('gulp');
const autoprefixer = require('gulp-autoprefixer');

exports.default = () => (
	gulp.src('src/app.css')
		.pipe(autoprefixer({
			cascade: false
		}))
		.pipe(gulp.dest('dist'))
);

API

autoprefixer(options?)

options

Type: object

See the Autoprefixer options.

Source Maps

Use gulp-sourcemaps like this:

const gulp = require('gulp');
const sourcemaps = require('gulp-sourcemaps');
const autoprefixer = require('gulp-autoprefixer');
const concat = require('gulp-concat');

exports.default = () => (
	gulp.src('src/**/*.css')
		.pipe(sourcemaps.init())
		.pipe(autoprefixer())
		.pipe(concat('all.css'))
		.pipe(sourcemaps.write('.'))
		.pipe(gulp.dest('dist'))
);

Tip

If you use other PostCSS based tools, like cssnano, you may want to run them together using gulp-postcss instead of gulp-autoprefixer. It will be faster, as the CSS is parsed only once for all PostCSS based tools, including Autoprefixer.

Versions

Version
6.1.0
6.0.0
4.1.0
3.1.0