1.1.3 • Published 8 years ago

pxtorem-cli v1.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Pxtorem CLI

A command line wrapper for the excellent postcss-pxtorem module.

Install

npm install --g pxtorem-cli

Usage

Pxtorem CLI takes 3 arguments:

ArgumentAliasDefaultDescription
--input-in/aRelative path to the stylesheet to process
--output-on/aRelative path to save the processed stylesheet
--rootvalue-r16Default font size for conversion e.g 16px == 1rem

Example

cd you style folder

pxtorem -i style.css -o style.processed.css -r 16

if you give input arg, you have to give output arg

without arguments

cd you style folder

pxtorem

it will process all style files in you style floder

warining it will use the default options, and it will use .processed as the filename suffix

default options

as pxtorem module

{ "rootValue": 16, "unitPrecision": 5, "propWhiteList": [], "selectorBlackList": [], "replace": true, "mediaQuery": false, "minPixelValue": 0 }

but you can create a "pxtorem.json" file in the cwd folder to rewrite the options

v1.1.2

check for css syntax errors

Add exception handling method

v1.0.6 Bug fix

give a value to argument "r" in command line, it dose not work.

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago