From 2881a17768042247d5160700d6d8e4cc551c0834 Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Wed, 14 Jun 2017 19:40:17 +0300 Subject: [PATCH] refactor: sanitizing from and to options from `postcss.config.js` --- lib/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/index.js b/lib/index.js index eb135a75..21982e98 100644 --- a/lib/index.js +++ b/lib/index.js @@ -92,6 +92,11 @@ module.exports = function loader (css, map) { if (config.file) this.addDependency(config.file) + // Disable override `to` option from `postcss.config.js` + if (config.options.to) delete config.options.to + // Disable override `from` option from `postcss.config.js` + if (config.options.from) delete config.options.from + let plugins = config.plugins || [] let options = Object.assign({ to: file,