From 334a36c5fa21547fc92b1cc87023aa5ab953491c Mon Sep 17 00:00:00 2001 From: inwoo Date: Thu, 12 Oct 2017 20:16:42 +0800 Subject: [PATCH] Update index.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复后继插件无法找到 来源文件路径,如:postcss-sprites --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 8754076..94a3ca5 100644 --- a/src/index.js +++ b/src/index.js @@ -6,6 +6,6 @@ export default postcss.plugin(pkg.name, (options) => { return (css, result) => { const adaptiveIns = new Adaptive(options) const output = adaptiveIns.parse(css.toString()) - result.root = postcss.parse(output) + result.root = postcss.parse(output,{from: css.source.input.file}) } })