Skip to content

Commit

Permalink
build: convert grunt-autoprefixer to grunt-postcss
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Apr 11, 2018
1 parent 4d24da7 commit 1be1a52
Show file tree
Hide file tree
Showing 3 changed files with 173 additions and 107 deletions.
44 changes: 26 additions & 18 deletions Gruntfile.coffee
Expand Up @@ -145,7 +145,7 @@ module.exports = (grunt) ->
"INTERNAL: Compiles Sass and copies third party CSS to the dist folder"
[
"sass"
"autoprefixer"
"postcss"
"csslint:unmin"
"usebanner:css"
]
Expand Down Expand Up @@ -662,18 +662,22 @@ module.exports = (grunt) ->
ext: ".css"
]

autoprefixer:
postcss:
# Only vendor prefixing and no IE8
modern:
options:
browsers: [
"last 2 versions"
"android >= 2.3"
"bb >= 7"
"ff >= 17"
"ie > 8"
"ios 5"
"opera 12.1"
processors: [
require("autoprefixer")(
browsers: [
"last 2 versions"
"android >= 2.3"
"bb >= 7"
"ff >= 17"
"ie > 8"
"ios 5"
"opera 12.1"
]
)
]
files: [
{
Expand All @@ -700,14 +704,18 @@ module.exports = (grunt) ->
# Needs both IE8 and vendor prefixing
mixed:
options:
browsers: [
"last 2 versions"
"android >= 2.3"
"bb >= 7"
"ff >= 17"
"ie >= 8"
"ios 5"
"opera 12.1"
processors: [
require("autoprefixer")(
browsers: [
"last 2 versions"
"android >= 2.3"
"bb >= 7"
"ff >= 17"
"ie >= 8"
"ios 5"
"opera 12.1"
]
)
]
files: [
cwd: "<%= coreDist %>/css/polyfills"
Expand Down
233 changes: 145 additions & 88 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1be1a52

Please sign in to comment.