Socket
Socket
Sign inDemoInstall

postcss-less-parser

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.5.0

8

index.js

@@ -12,3 +12,3 @@ var postcss = require('postcss')

var plugin = postcss.plugin('postcss-less', function (opts) {
var plugin = postcss.plugin('postcss-less-parser', function (opts) {
opts = opts || {};

@@ -287,7 +287,7 @@

err.message
, err.line
, err.column
, err.line || err.line === 0 ? err.line + 1 : undefined
, err.column || err.column === 0 ? err.column + 1 : undefined
, err.extract
, err.filename
, 'postcss-less-plugin'
, 'postcss-less-parser'
));

@@ -294,0 +294,0 @@ }

{
"name": "postcss-less-parser",
"version": "0.0.3",
"version": "0.5.0",
"description": "PostCSS plugin for integrating the popular Less CSS pre-processor into your PostCSS workflow",

@@ -21,2 +21,3 @@ "keywords": [

"devDependencies": {
"autoprefixer": "^6.3.6",
"ava": "^0.4.2",

@@ -23,0 +24,0 @@ "eslint": "^1.9.0",

@@ -9,4 +9,6 @@ # Finally, Less comes to PostCSS

## Some caveats
**THAT'S RIGHT.** This plugin doesn't give you "Less-like" functionality, or "Less-like" parsing. It gives you the full awesomeness of Less, with the flexibility of PostCSS. Basically, you can throw your "pre-processor-y" plugins away now.
## Having said that...
* Because this uses the [Less.js] parser and not the default PostCSS processor, some parsing will be different. PostCSS accepts "broken" CSS, whereas Less doubles as a de facto CSS linter, and will return errors if your Less / CSS is poorly structured.

@@ -41,3 +43,3 @@ * PostCSS will also sometimes "fix" CSS that uses property hacks, which Less preserves as the property name, or will remove comments from within values, which are also kept in the value by Less.

Load [postcss-less] as a PostCSS plugin:
Load [postcss-less-parser] as a PostCSS plugin:

@@ -44,0 +46,0 @@ ```js

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc