We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9235319 commit b20aa08Copy full SHA for b20aa08
index.js
@@ -255,18 +255,11 @@ function css (css, file) {
255
256
if (file === 'stdin' && output) file = output
257
258
- if (file !== 'stdin' && output || output || dir || argv.replace) {
259
- options = Object.assign(
260
- {
261
- from: file,
262
- to: output || (
263
- argv.replace
264
- ? file
265
- : path.join(dir, path.basename(file))
266
- )
267
- },
268
- config.options
269
+ // TODO: Unit test this
+ if (file !== 'stdin') options.from = file
+
+ if (output || dir || argv.replace) {
+ options.to = output || (argv.replace ? file : path.join(dir, path.basename(file)))
270
271
if (argv.ext) {
272
options.to = options.to
0 commit comments