From 3d56dc485711203142d3f688d22118e492f95802 Mon Sep 17 00:00:00 2001
From: Peter Jaszkowiak
Date: Thu, 16 Feb 2017 13:33:28 -0700
Subject: [PATCH] Fix #5368
---
src/meta/css.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/meta/css.js b/src/meta/css.js
index 3627c6c41a..53388da57b 100644
--- a/src/meta/css.js
+++ b/src/meta/css.js
@@ -143,7 +143,12 @@ module.exports = function (Meta) {
return callback(err);
}
- postcss(global.env === 'development' ? [ autoprefixer ] : [ autoprefixer, clean() ]).process(lessOutput.css).then(function (result) {
+ postcss(global.env === 'development' ? [ autoprefixer ] : [
+ autoprefixer,
+ clean({
+ processImportFrom: ['local']
+ }),
+ ]).process(lessOutput.css).then(function (result) {
result.warnings().forEach(function (warn) {
winston.verbose(warn.toString());
});