Socket
Socket
Sign inDemoInstall

postcss-loader

Package Overview
Dependencies
105
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [4.0.1](https://github.com/webpack-contrib/postcss-loader/compare/v4.0.0...v4.0.1) (2020-09-08)
### Bug Fixes
* source map generation with the `map` option for `postcss` ([#476](https://github.com/webpack-contrib/postcss-loader/issues/476)) ([6babeb1](https://github.com/webpack-contrib/postcss-loader/commit/6babeb1d64ca1e7d3d3651cb07881e1e291fa994))
## [4.0.0](https://github.com/webpack-contrib/postcss-loader/compare/v3.0.0...v4.0.0) (2020-09-07)

@@ -7,0 +14,0 @@

17

dist/index.js

@@ -69,16 +69,9 @@ "use strict";

inline: false,
annotation: false
annotation: false,
...processOptions.map
};
}
if (sourceMap) {
processOptions.map.prev = (0, _utils.normalizeSourceMap)(sourceMap, this.context);
}
} else if (sourceMap && typeof processOptions.map !== 'undefined') {
if (typeof processOptions.map === 'boolean') {
processOptions.map = {
inline: true
};
}
processOptions.map.prev = sourceMap;
if (sourceMap && processOptions.map) {
processOptions.map.prev = (0, _utils.normalizeSourceMap)(sourceMap, this.context);
}

@@ -85,0 +78,0 @@

@@ -254,2 +254,9 @@ "use strict";

if (processOptions.map === true) {
// https://github.com/postcss/postcss/blob/master/docs/source-maps.md
processOptions.map = {
inline: true
};
}
return {

@@ -256,0 +263,0 @@ plugins,

{
"name": "postcss-loader",
"version": "4.0.0",
"version": "4.0.1",
"description": "PostCSS loader for webpack",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -505,3 +505,5 @@ <div align="center">

options: {
config: false,
postcssOptions: {
config: false,
},
},

@@ -521,2 +523,4 @@ },

```js
const path = require('path');
module.exports = {

@@ -529,3 +533,5 @@ module: {

options: {
config: path.resolve(__dirname, 'custom.config.js'),
postcssOptions: {
config: path.resolve(__dirname, 'custom.config.js'),
},
},

@@ -954,2 +960,4 @@ },

```js
const path = require('path');
module.exports = {

@@ -966,3 +974,5 @@ module: {

options: {
config: 'path/to/postcss.config.js',
postcssOptions: {
config: path.resolve(__dirname, 'path/to/postcss.config.js'),
},
},

@@ -969,0 +979,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