Skip to content

Commit 753dea7

Browse files
evilebottnawimichael-ciniawsky
authored andcommitted
fix: sanitizing from and to options (postcss.config.js) (#260)
1 parent b5b3188 commit 753dea7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ module.exports = function loader (css, map) {
9292

9393
if (config.file) this.addDependency(config.file)
9494

95+
// Disable override `to` option from `postcss.config.js`
96+
if (config.options.to) delete config.options.to
97+
// Disable override `from` option from `postcss.config.js`
98+
if (config.options.from) delete config.options.from
99+
95100
let plugins = config.plugins || []
96101
let options = Object.assign({
97102
to: file,

0 commit comments

Comments
 (0)