Skip to content

Commit 5e2bca9

Browse files
halfzebramichael-ciniawsky
authored andcommittedAug 3, 2018
docs(README): replace postcss-cssnext with postcss-preset-env (#379)
1 parent e44fed6 commit 5e2bca9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = {
3939
parser: 'sugarss',
4040
plugins: {
4141
'postcss-import': {},
42-
'postcss-cssnext': {},
42+
'postcss-preset-env': {},
4343
'cssnano': {}
4444
}
4545
}
@@ -179,8 +179,7 @@ module.exports = ({ file, options, env }) => ({
179179
parser: file.extname === '.sss' ? 'sugarss' : false,
180180
plugins: {
181181
'postcss-import': { root: file.dirname },
182-
'postcss-cssnext': options.cssnext ? options.cssnext : false,
183-
'autoprefixer': env === 'production' ? options.autoprefixer : false,
182+
'postcss-preset-env': options.presetEnv ? options.presetEnv : false,
184183
'cssnano': env === 'production' ? options.cssnano : false
185184
}
186185
})
@@ -212,7 +211,7 @@ module.exports = ({ file, options, env }) => ({
212211
ident: 'postcss',
213212
plugins: (loader) => [
214213
require('postcss-import')({ root: loader.resourcePath }),
215-
require('postcss-cssnext')(),
214+
require('postcss-preset-env')(),
216215
require('autoprefixer')(),
217216
require('cssnano')()
218217
]

0 commit comments

Comments
 (0)
Please sign in to comment.