Socket
Socket
Sign inDemoInstall

postcss-loader

Package Overview
Dependencies
16
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.12.0 to 0.13.0

3

CHANGELOG.md

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

## 0.13
* Add `exec` parameter (by Neal Granger).
## 0.12

@@ -2,0 +5,0 @@ * Add CSS syntax highlight to syntax error code frame.

@@ -46,2 +46,3 @@ var loaderUtils = require('loader-utils');

var plugins;
var exec;
if ( typeof options === 'undefined' ) {

@@ -56,2 +57,3 @@ plugins = [];

opts.syntax = options.syntax;
exec = options.exec;
}

@@ -74,2 +76,5 @@ if ( params.pack ) {

}
if ( params.exec ) {
exec = params.exec;
}

@@ -79,3 +84,3 @@ var loader = this;

if ( params.parser === 'postcss-js' ) {
if ( params.parser === 'postcss-js' || exec ) {
source = this.exec(source, this.resource);

@@ -82,0 +87,0 @@ }

2

package.json
{
"name": "postcss-loader",
"version": "0.12.0",
"version": "0.13.0",
"description": "PostCSS loader for webpack",

@@ -5,0 +5,0 @@ "keywords": ["webpack", "loader", "css", "postcss", "postcss-runner"],

@@ -293,2 +293,11 @@ # PostCSS for Webpack [![Build Status][ci-img]][ci]

If you use JS styles without `postcss-js` parser, you can add `exec` parameter:
```js
{
test: /\.style.xyz$/,
loader: "style-loader!css-loader!postcss-loader?parser=custom-parser&exec"
}
```
## Webpack Events

@@ -295,0 +304,0 @@

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