From 44167910d13fea32208989ffb31406f9577baf28 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 4 May 2018 19:12:17 -0400 Subject: [PATCH 1/2] fix(index): remove `sourceMap` warning (#361) --- README.md | 2 -- lib/index.js | 4 ---- 2 files changed, 6 deletions(-) diff --git a/README.md b/README.md index f331fc7a..a3465703 100644 --- a/README.md +++ b/README.md @@ -268,8 +268,6 @@ module.exports = ({ file, options, env }) => ({ Enables source map support, `postcss-loader` will use the previous source map given by other loaders and update it accordingly, if no previous loader is applied before `postcss-loader`, the loader will generate a source map for you. -> :warning: If a previous loader like e.g `sass-loader` is applied and it's `sourceMap` option is set, but the `sourceMap` option in `postcss-loader` is omitted, previous source maps will be discarded by `postcss-loader` **entirely**. - **webpack.config.js** ```js { diff --git a/lib/index.js b/lib/index.js index 5afceeef..6db1dca1 100644 --- a/lib/index.js +++ b/lib/index.js @@ -137,10 +137,6 @@ module.exports = function loader (css, map, meta) { css = this.exec(css, this.resource) } - if (!sourceMap && map) { - this.emitWarning(`\n\n ⚠️ PostCSS Loader\n\nPrevious source map found, but options.sourceMap isn't set.\nIn this case the loader will discard the source map entirely for performance reasons.\nSee https://github.com/postcss/postcss-loader#sourcemap for more information.\n\n`) - } - if (sourceMap && typeof map === 'string') map = JSON.parse(map) if (sourceMap && map) options.map.prev = map From 928d5c41d5e2bdec130b3c0899760889466ae7bd Mon Sep 17 00:00:00 2001 From: Michael Ciniawsky Date: Sat, 5 May 2018 01:16:26 +0200 Subject: [PATCH 2/2] chore(release): 2.1.5 --- CHANGELOG.md | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9a70773..f63266fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [2.1.5](https://github.com/postcss/postcss-loader/compare/v2.1.4...v2.1.5) (2018-05-04) + + +### Bug Fixes + +* **index:** remove `sourceMap` warning ([#361](https://github.com/postcss/postcss-loader/issues/361)) ([4416791](https://github.com/postcss/postcss-loader/commit/4416791)) + + + ## [2.1.4](https://github.com/postcss/postcss-loader/compare/v2.1.3...v2.1.4) (2018-04-16) diff --git a/package.json b/package.json index 719206e2..a2d43dc9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "postcss-loader", - "version": "2.1.4", + "version": "2.1.5", "description": "PostCSS loader for webpack", "main": "lib/index.js", "engines": { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy