Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-preset-env

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-preset-env - npm Package Compare versions

Comparing version 5.1.0 to 5.2.0

7

CHANGELOG.md
# Changes to PostCSS Preset Env
### 5.2.0 (June 25, 2018)
- Updated: `autoprefixer` to v8.5.3 (patch update)
- Updated: `caniuse-lite` to v1.0.30000858 (patch update)
- Updated: `postcss` to 6.0.23 (patch update)
- Updated: `postcss-nesting` to v6.0.0 (major internal update, non-breaking for this project)
### 5.1.0 (May 21, 2018)

@@ -4,0 +11,0 @@

18

package.json
{
"name": "postcss-preset-env",
"version": "5.1.0",
"version": "5.2.0",
"description": "Convert modern CSS into something browsers understand",

@@ -28,7 +28,7 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>",

"dependencies": {
"autoprefixer": "^8.5.0",
"autoprefixer": "^8.6.3",
"browserslist": "^3.2.8",
"caniuse-lite": "^1.0.30000844",
"caniuse-lite": "^1.0.30000858",
"cssdb": "^3.1.0",
"postcss": "^6.0.22",
"postcss": "^6.0.23",
"postcss-attribute-case-insensitive": "^3.0.0",

@@ -54,3 +54,3 @@ "postcss-color-functional-notation": "^1.0.1",

"postcss-media-minmax": "^3.0.0",
"postcss-nesting": "^5.0.0",
"postcss-nesting": "^6.0.0",
"postcss-overflow-shorthand": "^1.0.1",

@@ -66,5 +66,5 @@ "postcss-page-break": "^1.0.0",

"babel-core": "^6.26.3",
"babel-eslint": "^8.2.3",
"babel-eslint": "^8.2.5",
"babel-preset-env": "^1.7.0",
"eslint": "^4.19.1",
"eslint": "^5.0.0",
"eslint-config-dev": "^2.0.0",

@@ -74,4 +74,4 @@ "postcss-simple-vars": "^4.1.0",

"pre-commit": "^1.2.2",
"rollup": "^0.59.2",
"rollup-plugin-babel": "^3.0.4"
"rollup": "^0.61.2",
"rollup-plugin-babel": "^3.0.5"
},

@@ -78,0 +78,0 @@ "eslintConfig": {

@@ -12,3 +12,3 @@ # PostCSS Preset Env [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS" width="90" height="90" align="right">][PostCSS]

```sh
```bash
npm install postcss-preset-env

@@ -94,3 +94,3 @@ ```

Add [PostCSS Preset Env] to your build tool:
Add [PostCSS Preset Env] to your project:

@@ -113,3 +113,3 @@ ```bash

Add [PostCSS] to your build tool:
Add [PostCSS] to your project:

@@ -133,3 +133,3 @@ ```bash

Add [PostCSS Loader] to your build tool:
Add [PostCSS Loader] to your project:

@@ -163,5 +163,27 @@ ```bash

}
}
};
```
#### Create React App
Add [React App Rewired] and [React App Rewire PostCSS] to your project:
```bash
npm install react-app-rewired react-app-rewire-postcss --save-dev
```
Use [React App Rewire PostCSS] and [PostCSS Preset Env] in your
`config-overrides.js` file:
```js
import reactAppRewirePostcss from 'react-app-rewire-postcss';
import postcssPresetEnv from 'postcss-preset-env';
export default config => reactAppRewirePostcss(config, {
plugins: () => [
postcssPresetEnv(/* options */)
]
});
```
#### Gulp

@@ -192,3 +214,3 @@

Add [Grunt PostCSS] to your build tool:
Add [Grunt PostCSS] to your project:

@@ -249,4 +271,7 @@ ```bash

postcssPresetEnv({
/* use stage 3 features + css nesting rules */
stage: 3,
features: [ 'nesting-rules' ]
features: {
'nesting-rules': true
}
})

@@ -260,4 +285,8 @@ ```

postcssPresetEnv({
'color-mod-function': {
unresolved: 'warn'
/* use stage 3 features + css color-mod (warning on unresolved) */
stage: 3,
features: {
'color-mod-function': {
unresolved: 'warn'
}
}

@@ -334,2 +363,4 @@ })

[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss
[React App Rewire PostCSS]: https://github.com/csstools/react-app-rewire-postcss
[React App Rewired]: https://github.com/timarney/react-app-rewired
[readme-style-with-preset-env-img]: https://csstools.github.io/postcss-preset-env/readme-style-with-preset-env.svg

@@ -336,0 +367,0 @@ [readme-style-with-preset-env-url]: https://codepen.io/pen?template=OZRovK

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc