KnowTheCode / Genesis-Developer-Starter-Lab

Let’s Build a Custom Developer’s Genesis Starter Child Theme
https://knowthecode.io/series/lets-build-custom-developers-genesis-starter-child-theme
23 stars 6 forks source link

'autoprefixer' in gulpfile.js #1

Closed timothyjensen closed 7 years ago

timothyjensen commented 7 years ago

I believe 'autoprefixer' in gulpfile.js should be changed to 'gulp-autoprefixer'.

Actually, the issue is in package.json, where 'gulp-autoprefixer' should be changed to 'autoprefixer'.

hellofromtonya commented 7 years ago

Hey Tim,

Thank you. Updated as you [can see here](autoprefixer package) and made a note in the episode too.

timothyjensen commented 7 years ago

When using gulp-autoprefixer I still see the error gulp-notify: [Task Failed [[object Object] is not a PostCSS plugin].

Is the problem with this? :

.pipe( postcss([
            autoprefixer({
                browsers: ['last 2 versions']
            })
        ]))
hellofromtonya commented 7 years ago

Whoops. We want to use the PostCSS Autoprefixer and not the gulp-autoprefixer. Sorry about that. The package.json now has the right autoprefixer in it.

To install on your machine, type: npm install --save-dev autoprefixer