postcss-loader
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -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 @@ |
@@ -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 @@ }, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
55464
1034
0