forked from lifenautjoe/webpack-starter-basic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostcss.config.js
More file actions
20 lines (20 loc) · 767 Bytes
/
postcss.config.js
File metadata and controls
20 lines (20 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
* PostCSS is a tool for transforming styles with JS plugins.
* These plugins can lint your CSS, support variables and mixins, transpile future CSS syntax, inline images, and more.
* https://github.com/postcss/postcss
*/
module.exports = {
plugins: [
/*
* Adds vendor prefixes to css attributes
* https://github.com/postcss/autoprefixer
*/
require('autoprefixer')({
/* It should add vendor prefixes for the last 2 versions of all browsers, meaning old prefixes such as
* -webkit-border-radius: 5px; that the latest browsers support as border-radius won't be added.
* https://github.com/ai/browserslist#queries
*/
browsers: 'last 2 versions'
})
]
};