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

postcss-loader

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-loader - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

3

CHANGELOG.md

@@ -0,1 +1,4 @@

## 1.2
* Add `config` parameter (by sainthkh).
## 1.1.1

@@ -2,0 +5,0 @@ * Fix `this` in options function (by Jeff Escalante).

4

index.js

@@ -51,2 +51,4 @@ var loaderUtils = require('loader-utils');

var callback = loader.async();
var configPath = params.config ?
path.join(process.cwd(), params.config) : path.dirname(file);

@@ -61,3 +63,3 @@ Promise.resolve().then(function () {

}
return loadConfig({ webpack: loader }, path.dirname(file));
return loadConfig({ webpack: loader }, configPath);
}

@@ -64,0 +66,0 @@ }).then(function (config) {

{
"name": "postcss-loader",
"version": "1.1.1",
"version": "1.2.0",
"description": "PostCSS loader for webpack",
"keywords": ["webpack", "loader", "css", "postcss", "postcss-runner"],
"engines": {
"node": ">=0.12",
"npm": ">=3"
},
"keywords": [
"webpack",
"loader",
"css",
"postcss",
"postcss-runner"
],
"author": "Andrey Sitnik <andrey@sitnik.ru>",

@@ -10,24 +20,39 @@ "license": "MIT",

"dependencies": {
"postcss-load-config": "^1.0.0",
"object-assign": "^4.1.0",
"loader-utils": "^0.2.16",
"postcss": "^5.2.5"
"loader-utils": "^0.2.16",
"object-assign": "^4.1.0",
"postcss": "^5.2.6",
"postcss-load-config": "^1.0.0"
},
"devDependencies": {
"eslint-config-postcss": "2.0.2",
"postcss-safe-parser": "2.0.0",
"webpack-stream": "3.2.0",
"gulp-eslint": "3.0.1",
"json-loader": "0.5.4",
"raw-loader": "0.5.1",
"postcss-js": "0.1.3",
"gulp-mocha": "3.0.1",
"fs-extra": "1.0.0",
"sugarss": "0.2.0",
"chai": "3.5.0",
"gulp": "3.9.1"
"eslint": "^3.11.1",
"eslint-config-postcss": "^2.0.2",
"fs-extra": "^1.0.0",
"gulp": "^3.9.1",
"gulp-eslint": "^3.0.1",
"gulp-jest": "^0.6.0",
"json-loader": "^0.5.4",
"lint-staged": "^3.2.1",
"postcss-js": "^0.1.3",
"postcss-safe-parser": "^2.0.0",
"pre-commit": "^1.1.3",
"raw-loader": "^0.5.1",
"sugarss": "^0.2.0",
"webpack-stream": "^3.2.0"
},
"scripts": {
"lint-staged": "lint-staged",
"test": "gulp"
}
},
"eslintConfig": {
"extends": "eslint-config-postcss/es5",
"env": {
"jest": true
}
},
"lint-staged": {
"*.js": "eslint"
},
"pre-commit": [
"lint-staged"
]
}

@@ -208,5 +208,5 @@ # PostCSS for Webpack [![Build Status][ci-img]][ci]

if (check(ctx.webpack.resourcePath)) {
return plugins1;
return { plugins: plugins1 };
} else {
return plugins2;
return { plugins: plugins2 };
}

@@ -213,0 +213,0 @@ }

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