diff --git a/index.js b/index.js index 6419322..c845ea4 100755 --- a/index.js +++ b/index.js @@ -134,7 +134,7 @@ module.exports = postcss.plugin('postcss-px-to-viewport', function (options) { }); if (landscapeRules.length > 0) { - var landscapeRoot = new postcss.atRule({ params: '(orientation: landscape)', name: 'media' }); + var landscapeRoot = new postcss.AtRule({ params: '(orientation: landscape)', name: 'media' }); landscapeRules.forEach(function(rule) { landscapeRoot.append(rule); diff --git a/package.json b/package.json index deec944..cfa5716 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "postcss-px-to-viewport", "description": "A CSS post-processor that converts px to viewport units (vw, vh, vmin, vmax).", - "version": "1.1.1", + "version": "1.1.2", "author": "Dmitry Karpunin ", "license": "MIT", "repository": {