postcss-property-lookup
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -14,3 +14,3 @@ 'use strict'; | ||
var plugin = 'postcss-property-lookup'; | ||
var lookupPattern = /@([a-z-]+)(\s?)/g; | ||
var lookupPattern = /@([a-z-]+)\b/g; | ||
var defaultOptions = { | ||
@@ -52,3 +52,3 @@ logLevel: 'warn' | ||
function resolveLookup(rule, orig, prop, space) { | ||
function resolveLookup(rule, orig, prop) { | ||
var resolvedValue = closest(rule, prop); | ||
@@ -60,3 +60,3 @@ | ||
return resolvedValue + space; | ||
return resolvedValue; | ||
} | ||
@@ -63,0 +63,0 @@ |
{ | ||
"name": "postcss-property-lookup", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "PostCSS plugin that allows referencing property values without a variable", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -38,2 +38,31 @@ # postcss-property-lookup [![Build Status][ci-img]][ci] | ||
## Installation | ||
``` | ||
$ npm install postcss-property-lookup | ||
``` | ||
## Usage | ||
### JavaScript | ||
```js | ||
postcss([ | ||
require('postcss-property-lookup')(/* options */), | ||
// more plugins... | ||
]) | ||
``` | ||
### TypeScript | ||
```ts | ||
///<reference path="node_modules/postcss-property-lookup/.d.ts" /> | ||
import postcssPropertyLookup from 'postcss-property-lookup'; | ||
postcss([ | ||
postcssPropertyLookup(/* options */), | ||
// more plugins... | ||
]) | ||
``` | ||
## Options | ||
@@ -40,0 +69,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7386
8
103
76