Skip to content

Commit

Permalink
refactor: sanitizing from and to options from postcss.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Jun 14, 2017
1 parent 2ef4449 commit 2881a17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
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 2881a17

Please sign in to comment.