Skip to content

Commit

Permalink
fix: sanitizing from and to options (postcss.config.js) (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored and michael-ciniawsky committed Jun 14, 2017
1 parent b5b3188 commit 753dea7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/index.js
Expand Up @@ -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,
Expand Down

0 comments on commit 753dea7

Please sign in to comment.